debugrebuildstate: rename to debugrebuilddirstate
authorMads Kiilerich <madski@unity3d.com>
Mon, 15 Apr 2013 01:41:47 +0200
changeset 18963 c31b8dc9de67
parent 18962 c0b2cb62067f
child 18964 ca480d710fe6
debugrebuildstate: rename to debugrebuilddirstate There is a lot of state, but this command is for rebuilding the dirstate.
mercurial/commands.py
tests/test-completion.t
--- a/mercurial/commands.py	Mon Apr 15 01:41:27 2013 +0200
+++ b/mercurial/commands.py	Mon Apr 15 01:41:47 2013 +0200
@@ -2246,10 +2246,10 @@
              (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.
--- a/tests/test-completion.t	Mon Apr 15 01:41:27 2013 +0200
+++ b/tests/test-completion.t	Mon Apr 15 01:41:47 2013 +0200
@@ -92,7 +92,7 @@
   debugpathcomplete
   debugpushkey
   debugpvec
-  debugrebuildstate
+  debugrebuilddirstate
   debugrename
   debugrevlog
   debugrevspec
@@ -247,7 +247,7 @@
   debugpathcomplete: full, normal, added, removed
   debugpushkey: 
   debugpvec: 
-  debugrebuildstate: rev
+  debugrebuilddirstate: rev
   debugrename: rev
   debugrevlog: changelog, manifest, dump
   debugrevspec: