Patchwork [4,of,6] debugcommands: move 'debugrebuildfncache' in the new module

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 14, 2017, 6:36 p.m.
Message ID <025413c767a6f1b39682.1487097381@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/18482/
State Accepted
Headers show

Comments

Pierre-Yves David - Feb. 14, 2017, 6:36 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1486026060 -3600
#      Thu Feb 02 10:01:00 2017 +0100
# Node ID 025413c767a6f1b396820be4eaebf85823b97dda
# Parent  d6250c557c1d81598f90e6544fb0edd25ff10993
# EXP-Topic debugcommands
debugcommands: move 'debugrebuildfncache' in the new module

Patch

diff -r d6250c557c1d -r 025413c767a6 mercurial/commands.py
--- 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 @@  from . import (
     patch,
     phases,
     pycompat,
-    repair,
     revlog,
     revset,
     scmutil,
@@ -1859,11 +1858,6 @@  def copy(ui, repo, *pats, **opts):
     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'))
diff -r d6250c557c1d -r 025413c767a6 mercurial/debugcommands.py
--- 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 @@  def debugrebuilddirstate(ui, repo, rev, 
 
         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')),