Rev 2939: trivial fix for packs at win32: explicitly close file before deleting in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Oct 25 00:10:47 BST 2007
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 2939
revision-id: pqm at pqm.ubuntu.com-20071024231045-lquhgsz9513gn2l4
parent: pqm at pqm.ubuntu.com-20071024181951-qqo4r5mqrhr032pf
parent: bialix at ukr.net-20071024222440-15vl68cl0vs1xdcl
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2007-10-25 00:10:45 +0100
message:
trivial fix for packs at win32: explicitly close file before deleting
(robertc)
modified:
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
------------------------------------------------------------
revno: 2938.1.1
merged: bialix at ukr.net-20071024222440-15vl68cl0vs1xdcl
parent: pqm at pqm.ubuntu.com-20071024181951-qqo4r5mqrhr032pf
committer: Alexander Belchenko <bialix at ukr.net>
branch nick: packs
timestamp: Thu 2007-10-25 01:24:40 +0300
message:
trivial fix for packs at win32: explicitly close file before deleting
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2007-10-24 05:17:39 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2007-10-24 22:24:40 +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.
More information about the bazaar-commits
mailing list