~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to baz_import.py

  • Committer: Aaron Bentley
  • Date: 2005-09-13 22:49:40 UTC
  • mto: (147.1.21)
  • mto: This revision was merged to the branch mainline in revision 154.
  • Revision ID: abentley@panoramicfeedback.com-20050913224940-c6db07f39dd303be
Updated docs, obsoleted old executibles

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    return ancestors
207
207
 
208
208
def get_last_revision(branch):
209
 
    last_patch = branch.last_revision()
 
209
    last_patch = branch.last_patch()
210
210
    try:
211
211
        return arch_revision(last_patch)
212
212
    except NotArchRevision:
437
437
                # next revision of the baz tree
438
438
                branch = find_branch(revdir)
439
439
            else:
440
 
                branch = Branch.initialize(revdir)
 
440
                branch = Branch(revdir, init=True)
441
441
        else:
442
442
            old = os.path.join(revdir, ".bzr")
443
443
            new = os.path.join(tempdir, ".bzr")
544
544
    True
545
545
    """
546
546
    try:
547
 
        return Branch.open(path)
 
547
        return Branch(path)
548
548
    except BzrError, e:
549
549
        if e.args[0].endswith("' is not in a branch"):
550
550
            raise NotInABranch(path)