[Bug] pack on win32: error during clone of branch from knit to pack repo

Alexander Belchenko bialix at ukr.net
Wed Oct 24 23:32:31 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko пишет:
> I initialize new pack repo and try to clone branches from my knit repo to pack repo.
> First run of `bzr branch` was successful. However, on subsequent try I'm always
> get error:
> 
> bzr: ERROR: Must end write groups before releasing write locks.
> 
> Here is output with -Derror flag:

In a flash Robert provided the patch:

=== modified file 'bzrlib/repofmt/pack_repo.py'
- --- bzrlib/repofmt/pack_repo.py 2007-10-24 05:17:39 +0000
+++ bzrlib/repofmt/pack_repo.py 2007-10-24 22:17:24 +0000
@@ -274,6 +274,7 @@
     def abort(self):
         """Cancel creating this pack."""
         self._state = 'aborted'
+        self.write_stream.close()
         # Remove the temporary pack file.
         self.upload_transport.delete(self.random_name)
         # The indices have no state on disk.

This patch fixed problem, and as Robert asked, I sent this patch to PQM.

Alexander

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHH8f+zYr338mxwCURAjxuAKCVSZQdyddip7jkGdwdnHtRaV15aQCfTxt7
QaMtaq0yZ5LUBk6Ni2dPYes=
=U5U1
-----END PGP SIGNATURE-----



More information about the bazaar mailing list