Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 30969:e7d7335819f4
debugcommands: move 'debugrebuildfncache' in the new module
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Feb 2017 10:01:00 +0100 |
parents | cc2b537b1966 |
children | 7236f949ce3f |
comparison
equal
deleted
inserted
replaced
30968:cc2b537b1966 | 30969:e7d7335819f4 |
---|---|
1493 dsnotadded = set(f for f in dsonly if dirstate[f] != 'a') | 1493 dsnotadded = set(f for f in dsonly if dirstate[f] != 'a') |
1494 changedfiles = manifestonly | dsnotadded | 1494 changedfiles = manifestonly | dsnotadded |
1495 | 1495 |
1496 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) | 1496 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) |
1497 | 1497 |
1498 @command('debugrebuildfncache', [], '') | |
1499 def debugrebuildfncache(ui, repo): | |
1500 """rebuild the fncache file""" | |
1501 repair.rebuildfncache(ui, repo) | |
1502 | |
1498 @command('debugupgraderepo', [ | 1503 @command('debugupgraderepo', [ |
1499 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), | 1504 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), |
1500 ('', 'run', False, _('performs an upgrade')), | 1505 ('', 'run', False, _('performs an upgrade')), |
1501 ]) | 1506 ]) |
1502 def debugupgraderepo(ui, repo, run=False, optimize=None): | 1507 def debugupgraderepo(ui, repo, run=False, optimize=None): |