contrib/compress: correct ordering of copying
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 22 Aug 2010 19:27:09 +0200
changeset 12021 42253a4d2be5
parent 12020 69498b1b552b
child 12022 6b04f1e1aa8a
contrib/compress: correct ordering of copying Changelog should always be copied last, otherwise readers can see an inconsistent repo.
contrib/compress.py
--- a/contrib/compress.py	Sun Aug 22 19:26:07 2010 +0200
+++ b/contrib/compress.py	Sun Aug 22 19:27:09 2010 +0200
@@ -36,7 +36,6 @@
         tr = target.transaction("compress")
         trp = weakref.proxy(tr)
 
-        _copyrevlog(ui, repo.changelog, target.changelog, trp, 'changesets')
         _copyrevlog(ui, repo.manifest, target.manifest, trp, 'manifest')
 
         # only keep indexes and filter "data/" prefix and ".i" suffix
@@ -48,6 +47,8 @@
             ui.progress(('adding files'), cnt, item=f, unit=('file'),
                         total=total)
 
+        _copyrevlog(ui, repo.changelog, target.changelog, trp, 'changesets')
+
         tr.close()
     finally:
         if tr: