question about bzrlib.tag
Alexander Belchenko
bialix at ukr.net
Sun Aug 12 09:39:58 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
from bzrlib/tags.py class BasicTags:
def _set_tag_dict(self, new_dict):
"""Replace all tag definitions
:param new_dict: Dictionary from tag name to target.
"""
self.branch.lock_read()
try:
self.branch._transport.put_bytes('tags',
self._serialize_tag_dict(new_dict))
finally:
self.branch.unlock()
Why this method acquire read lock? This method actually write not read data.
- --
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGvsdezYr338mxwCURAsITAJ4/upTS5A4hZNB4h+9jm4zP7M/4/gCfWjzG
Ca3Qj0NwpaeyF1zQ1aTbwcs=
=8Rm/
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list