Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repair.py @ 28031:6f248ba85309
treemanifest: fix debugrebuildfncache
When I taught debugrebuildfncache about dirlogs in fb92927f9775
(treemanifests: fix streaming clone, 2016-02-04), I added a
last-minute "if 'treemanifest' in repo" guard. That should have been
checking for "... in repo.requirements". Fix that and add tests for
it.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 07 Feb 2016 21:44:38 -0800 |
parents | fb92927f9775 |
children | 43eb31ea2dcb |
line wrap: on
line diff
--- a/mercurial/repair.py Wed Feb 03 15:12:01 2016 +0000 +++ b/mercurial/repair.py Sun Feb 07 21:44:38 2016 -0800 @@ -273,7 +273,7 @@ ui.progress(_('changeset'), None) - if 'treemanifest' in repo: # safe but unnecessary otherwise + if 'treemanifest' in repo.requirements: # safe but unnecessary otherwise for dir in util.dirs(seenfiles): i = 'meta/%s/00manifest.i' % dir d = 'meta/%s/00manifest.d' % dir