Rev 3531: 'bzr testament' should just open the branch in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Sun Jul 13 17:44:36 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 3531
revision-id: john at arbash-meinel.com-20080713164334-eu5xwg1046zxyz03
parent: pqm at pqm.ubuntu.com-20080707230506-82h5w03vc72dyf1a
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Sun 2008-07-13 11:43:34 -0500
message:
'bzr testament' should just open the branch
-------------- next part --------------
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2008-07-04 03:29:14 +0000
+++ b/bzrlib/builtins.py 2008-07-13 16:43:34 +0000
@@ -3515,7 +3515,10 @@
testament_class = StrictTestament
else:
testament_class = Testament
- b = WorkingTree.open_containing(branch)[0].branch
+ if branch == '.':
+ b = Branch.open_containing(branch)[0]
+ else:
+ b = Branch.open(branch)
b.lock_read()
try:
if revision is None:
More information about the bazaar-commits
mailing list