~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to baz_import.py

  • Committer: Aaron Bentley
  • Date: 2005-09-19 02:44:11 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20050919024411-8bb9efa8c13c7c44
Updated to match API changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
                # next revision of the baz tree
438
438
                branch = find_branch(revdir)
439
439
            else:
440
 
                branch = Branch(revdir, init=True)
 
440
                branch = Branch.initialize(revdir)
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(path)
 
547
        return Branch.open(path)
548
548
    except BzrError, e:
549
549
        if e.args[0].endswith("' is not in a branch"):
550
550
            raise NotInABranch(path)