~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fetch_ghosts.py

  • Committer: Robert Collins
  • Date: 2005-10-19 05:10:17 UTC
  • mto: (147.4.12) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20051019051017-efc450ed39cfbaac
updates for bzr api changes

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