changeset 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
files mercurial/commands.py mercurial/debugcommands.py
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Feb 02 10:00:26 2017 +0100
+++ b/mercurial/commands.py	Thu Feb 02 10:01:00 2017 +0100
@@ -47,7 +47,6 @@
     patch,
     phases,
     pycompat,
-    repair,
     revlog,
     revset,
     scmutil,
@@ -1859,11 +1858,6 @@
     with repo.wlock(False):
         return cmdutil.copy(ui, repo, pats, opts)
 
-@command('debugrebuildfncache', [], '')
-def debugrebuildfncache(ui, repo):
-    """rebuild the fncache file"""
-    repair.rebuildfncache(ui, repo)
-
 @command('debugrename',
     [('r', 'rev', '', _('revision to debug'), _('REV'))],
     _('[-r REV] FILE'))
--- a/mercurial/debugcommands.py	Thu Feb 02 10:00:26 2017 +0100
+++ b/mercurial/debugcommands.py	Thu Feb 02 10:01:00 2017 +0100
@@ -1495,6 +1495,11 @@
 
         dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)
 
+@command('debugrebuildfncache', [], '')
+def debugrebuildfncache(ui, repo):
+    """rebuild the fncache file"""
+    repair.rebuildfncache(ui, repo)
+
 @command('debugupgraderepo', [
     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
     ('', 'run', False, _('performs an upgrade')),