contrib/compress: correct ordering of copying
Changelog should always be copied last, otherwise readers can see an
inconsistent repo.
--- 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: