[Pkg-bazaar-commits] ./bzr/unstable r406: - bzr status only needs a read-lock

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:52:12 UTC 2009


------------------------------------------------------------
revno: 406
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-05-09 13:51:55 +1000
message:
  - bzr status only needs a read-lock
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-05-09 03:11:21 +0000
+++ b/bzrlib/commands.py	2005-05-09 03:51:55 +0000
@@ -124,9 +124,8 @@
     aliases = ['st', 'stat']
     
     def run(self, all=False, file_list=None):
-        #import bzrlib.status
-        #bzrlib.status.tree_status(Branch('.'))
-        Branch('.').show_status(show_all=all, file_list=file_list)
+        b = Branch('.', lock_mode='r')
+        b.show_status(show_all=all, file_list=file_list)
 
 
 class cmd_cat_revision(Command):



More information about the Pkg-bazaar-commits mailing list