~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-13 16:43:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3547.
  • Revision ID: john@arbash-meinel.com-20080713164334-eu5xwg1046zxyz03
'bzr testament' should just open the branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
3515
3515
            testament_class = StrictTestament
3516
3516
        else:
3517
3517
            testament_class = Testament
3518
 
        b = WorkingTree.open_containing(branch)[0].branch
 
3518
        if branch == '.':
 
3519
            b = Branch.open_containing(branch)[0]
 
3520
        else:
 
3521
            b = Branch.open(branch)
3519
3522
        b.lock_read()
3520
3523
        try:
3521
3524
            if revision is None: