Mercurial > evolve
diff hgext/evolve.py @ 1172:8d28bb4fc127
debugobsconvert: fix 6f08a8f6bb1d and add proper test
The changeset adding deduplication (6f08a8f6bb1d) was super buggy and dropped
all obsmarkers in the repo. We update the test to check this case and fix the
deduplication.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 20 Nov 2014 15:49:52 -0800 |
parents | d14537d7dca9 |
children | ad7a31a7a413 |
line wrap: on
line diff
--- a/hgext/evolve.py Thu Nov 20 15:34:34 2014 -0800 +++ b/hgext/evolve.py Thu Nov 20 15:49:52 2014 -0800 @@ -2776,10 +2776,10 @@ origmarkers = repo.obsstore._all known = set() markers = [] - for m in markers: + for m in origmarkers: if m in known: continue - know.add(m) + known.add(m) markers.append(m) ui.write(_('Old store is version %d, will rewrite in version %d\n') % ( repo.obsstore._version, new_format))