~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-14 23:03:31 UTC
  • mto: (1587.1.6 bound-branches)
  • mto: This revision was merged to the branch mainline in revision 1590.
  • Revision ID: john@arbash-meinel.com-20051114230331-7446f4c41816df34
Playing around with changing the default pull location for a bound branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
        import errno
374
374
        
375
375
        br_to = Branch.open_containing('.')[0]
376
 
        stored_loc = br_to.get_parent()
 
376
        bound_loc = br_to.get_bound_location()
 
377
        if bound_loc:
 
378
            br = Branch.open(bound_loc)
 
379
            stored_loc = br.get_parent()
 
380
            del br
 
381
        else:
 
382
            stored_loc = br_to.get_parent()
377
383
        if location is None:
378
384
            if stored_loc is None:
379
385
                raise BzrCommandError("No pull location known or specified.")