Rev 2948: (robertc) Fix export to lock the repository. (Robert Collins) in http://people.ubuntu.com/~robertc/baz2.0/export
Robert Collins
robertc at robertcollins.net
Sun Oct 28 17:30:32 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/export
------------------------------------------------------------
revno: 2948
revision-id:robertc at robertcollins.net-20071028173025-pk3c1b0kmr5x6l31
parent: pqm at pqm.ubuntu.com-20071028093324-h4ymz42l31vwfbu1
committer: Robert Collins <robertc at robertcollins.net>
branch nick: export
timestamp: Mon 2007-10-29 04:30:25 +1100
message:
(robertc) Fix export to lock the repository. (Robert Collins)
modified:
bzrlib/export/__init__.py __init__.py-20051114235828-1ba62cb4062304e6
=== modified file 'bzrlib/export/__init__.py'
--- a/bzrlib/export/__init__.py 2006-09-20 23:43:18 +0000
+++ b/bzrlib/export/__init__.py 2007-10-28 17:30:25 +0000
@@ -92,7 +92,11 @@
if format not in _exporters:
raise errors.NoSuchExportFormat(format)
- return _exporters[format](tree, dest, root)
+ tree.lock_read()
+ try:
+ return _exporters[format](tree, dest, root)
+ finally:
+ tree.unlock()
def get_root_name(dest):
More information about the bazaar-commits
mailing list