Patchwork [10,of,11] debugstate: rename to debugdirstate

login
register
mail settings
Submitter Mads Kiilerich
Date April 15, 2013, 1:14 a.m.
Message ID <505e5eed2ff561997ea2.1365988465@xps>
Download mbox | patch
Permalink /patch/1313/
State Accepted
Commit c0b2cb62067f4ead0c4c36dba3ed9c9afe01125d
Headers show

Comments

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

There is a lot of state, but this command is for debugging the dirstate.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2494,7 +2494,7 @@  def debugsetparents(ui, repo, rev1, rev2
     finally:
         wlock.release()
 
-@command('debugstate',
+@command('debugdirstate|debugstate',
     [('', 'nodates', None, _('do not display the saved mtime')),
     ('', 'datesort', None, _('sort by saved mtime'))],
     _('[OPTION]...'))
diff --git a/tests/test-completion.t b/tests/test-completion.t
--- a/tests/test-completion.t
+++ b/tests/test-completion.t
@@ -77,6 +77,7 @@  Show debug commands if there are no othe
   debugdag
   debugdata
   debugdate
+  debugdirstate
   debugdiscovery
   debugfileset
   debugfsinfo
@@ -96,7 +97,6 @@  Show debug commands if there are no othe
   debugrevlog
   debugrevspec
   debugsetparents
-  debugstate
   debugsub
   debugsuccessorssets
   debugwalk
@@ -232,6 +232,7 @@  Show all commands + options
   debugdag: tags, branches, dots, spaces
   debugdata: changelog, manifest
   debugdate: extended
+  debugdirstate: nodates, datesort
   debugdiscovery: old, nonheads, ssh, remotecmd, insecure
   debugfileset: rev
   debugfsinfo: 
@@ -251,7 +252,6 @@  Show all commands + options
   debugrevlog: changelog, manifest, dump
   debugrevspec: 
   debugsetparents: 
-  debugstate: nodates, datesort
   debugsub: rev
   debugsuccessorssets: 
   debugwalk: include, exclude