Patchwork [11,of,11] debugrebuildstate: rename to debugrebuilddirstate

login
register
mail settings
Submitter Mads Kiilerich
Date April 15, 2013, 1:14 a.m.
Message ID <d89e0172d74dd25dea13.1365988466@xps>
Download mbox | patch
Permalink /patch/1314/
State Accepted
Commit c31b8dc9de679ff7b7603012a1c24f29cda4de7d
Headers show

Comments

Mads Kiilerich - April 15, 2013, 1:14 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1365982907 -7200
# Node ID d89e0172d74dd25dea1398e6891fce17c4e2db63
# Parent  505e5eed2ff561997ea230658877f2181b5a9b1d
debugrebuildstate: rename to debugrebuilddirstate

There is a lot of state, but this command is for rebuilding the dirstate.
Matt Mackall - April 15, 2013, 10:23 p.m.
On Mon, 2013-04-15 at 03:14 +0200, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski@unity3d.com>
> # Date 1365982907 -7200
> # Node ID d89e0172d74dd25dea1398e6891fce17c4e2db63
> # Parent  505e5eed2ff561997ea230658877f2181b5a9b1d
> debugrebuildstate: rename to debugrebuilddirstate

These are queued for default, thanks.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2246,10 +2246,10 @@  def debugpvec(ui, repo, a, b=None):
              (abs(pa._depth - pb._depth), pvec._hamming(pa._vec, pb._vec),
               pa.distance(pb), rel))
 
-@command('debugrebuildstate',
+@command('debugrebuilddirstate|debugrebuildstate',
     [('r', 'rev', '', _('revision to rebuild to'), _('REV'))],
     _('[-r REV]'))
-def debugrebuildstate(ui, repo, rev):
+def debugrebuilddirstate(ui, repo, rev):
     """rebuild the dirstate as it would look like for the given revision
 
     If no revision is specified the first current parent will be used.
diff --git a/tests/test-completion.t b/tests/test-completion.t
--- a/tests/test-completion.t
+++ b/tests/test-completion.t
@@ -92,7 +92,7 @@  Show debug commands if there are no othe
   debugpathcomplete
   debugpushkey
   debugpvec
-  debugrebuildstate
+  debugrebuilddirstate
   debugrename
   debugrevlog
   debugrevspec
@@ -247,7 +247,7 @@  Show all commands + options
   debugpathcomplete: full, normal, added, removed
   debugpushkey: 
   debugpvec: 
-  debugrebuildstate: rev
+  debugrebuilddirstate: rev
   debugrename: rev
   debugrevlog: changelog, manifest, dump
   debugrevspec: