~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-17 02:02:35 UTC
  • mfrom: (3530.2.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080717020235-hkwh9o7zfxqj6v1u
(jam) 'bzr testament' doesn't use a WT,
        so it shouldn't try to open one

Show diffs side-by-side

added added

removed removed

Lines of Context:
3407
3407
            testament_class = StrictTestament
3408
3408
        else:
3409
3409
            testament_class = Testament
3410
 
        b = WorkingTree.open_containing(branch)[0].branch
 
3410
        if branch == '.':
 
3411
            b = Branch.open_containing(branch)[0]
 
3412
        else:
 
3413
            b = Branch.open(branch)
3411
3414
        b.lock_read()
3412
3415
        try:
3413
3416
            if revision is None: