# HG changeset patch # User Benoit Boissinot # Date 1282498029 -7200 # Node ID 42253a4d2be54fd5516a20a0d5855ebe0d3a1c3c # Parent 69498b1b552b831e507ce74c96b500529420f774 contrib/compress: correct ordering of copying Changelog should always be copied last, otherwise readers can see an inconsistent repo. diff -r 69498b1b552b -r 42253a4d2be5 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: