~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fetch_ghosts.py

  • Committer: Aaron Bentley
  • Date: 2005-10-18 20:17:59 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051018201759-a5dfcbed504c3d22
Adopted Branch.open_containing's new format

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from bzrlib.errors import NoSuchRevision, InstallFailed, BzrCommandError
19
19
def fetch_ghosts(branch):
20
20
    """Install ghosts from copies in another branch."""
21
 
    this_branch = Branch.open_containing('.')
 
21
    this_branch = Branch.open_containing('.')[0]
22
22
    if branch is None:
23
23
        branch = this_branch.get_parent()
24
24
        if branch is None:
26
26
        else:
27
27
            print "Using saved location %s" % branch
28
28
 
29
 
    other_branch = Branch.open_containing(branch)
 
29
    other_branch = Branch.open_containing(branch)[0]
30
30
    installed = []
31
31
    failed = []
32
32