[issue2578] bundlerepo does not clean up temporary files for overlay bundle

Adrian Buehlmann bugs at mercurial.selenic.com
Thu Jan 6 18:41:34 UTC 2011


New submission from Adrian Buehlmann <adrian at cadifra.com>:

Apply the following patch:


diff --git a/tests/test-bundle.t b/tests/test-bundle.t
--- a/tests/test-bundle.t
+++ b/tests/test-bundle.t
@@ -188,6 +188,7 @@ Log -R full.hg in fresh empty
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     0.0
   
+  $ ls .hg/hg-bundle*
 
 Pull ../full.hg into empty (with hook)
 

Which changes the testcase


<paste>
Log -R full.hg in fresh empty

  $ rm -r empty
  $ hg init empty
  $ cd empty
  $ hg -R bundle://../full.hg log
</paste>


Then

adi at ubuntu1:~/hgrepos/hg-crew/tests$ python run-tests.py test-bundle.t

ERROR: /home/adi/hgrepos/hg-crew/tests/test-bundle.t output changed
--- /home/adi/hgrepos/hg-crew/tests/test-bundle.t 
+++ /home/adi/hgrepos/hg-crew/tests/test-bundle.t.err 
@@ -189,6 +189,7 @@
   summary:     0.0
   
   $ ls .hg/hg-bundle*
+  .hg/hg-bundle-_eaFtA.hg10un
 
 Pull ../full.hg into empty (with hook)
 
!
Failed test-bundle.t: output changed
# Ran 1 tests, 0 skipped, 1 failed.


Shows that there are temporary bundle files left (which is unwanted).

Expected: No temporary files left after the command finished.


(See also related Issue2478)

----------
messages: 14825
nosy: abuehl
priority: bug
status: unread
title: bundlerepo does not clean up temporary files for overlay bundle

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2578>
____________________________________________________


More information about the Mercurial-devel mailing list