Rev 2806: Old fix from Alexander: set_tag_dict should lock the branch in http://sourcefrog.net/bzr/tag-lock

Martin Pool mbp at sourcefrog.net
Mon Sep 10 10:55:46 BST 2007


At http://sourcefrog.net/bzr/tag-lock

------------------------------------------------------------
revno: 2806
revision-id: mbp at sourcefrog.net-20070910095545-1wuzua8ly1tdee9o
parent: pqm at pqm.ubuntu.com-20070907145828-hjh5941jv7y8d9z8
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: tag-lock
timestamp: Mon 2007-09-10 19:55:45 +1000
message:
  Old fix from Alexander: set_tag_dict should lock the branch
modified:
  bzrlib/tag.py                  tag.py-20070212110532-91cw79inah2cfozx-1
=== modified file 'bzrlib/tag.py'
--- a/bzrlib/tag.py	2007-04-19 19:28:39 +0000
+++ b/bzrlib/tag.py	2007-09-10 09:55:45 +0000
@@ -143,7 +143,7 @@
 
         :param new_dict: Dictionary from tag name to target.
         """
-        self.branch.lock_read()
+        self.branch.lock_write()
         try:
             self.branch._transport.put_bytes('tags',
                 self._serialize_tag_dict(new_dict))




More information about the bazaar-commits mailing list