Mercurial > hg-stable
changeset 12021:42253a4d2be5
contrib/compress: correct ordering of copying
Changelog should always be copied last, otherwise readers can see an
inconsistent repo.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 22 Aug 2010 19:27:09 +0200 |
parents | 69498b1b552b |
children | 6b04f1e1aa8a |
files | contrib/compress.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: