debugcommands: move 'debugsub' in the new module
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Feb 2017 10:04:55 +0100
changeset 30955 8e38fa360a12
parent 30954 dad968920130
child 30956 db30c6bfeb70
debugcommands: move 'debugsub' in the new module
mercurial/commands.py
mercurial/debugcommands.py
--- a/mercurial/commands.py	Thu Feb 02 10:04:34 2017 +0100
+++ b/mercurial/commands.py	Thu Feb 02 10:04:55 2017 +0100
@@ -1854,17 +1854,6 @@
     with repo.wlock(False):
         return cmdutil.copy(ui, repo, pats, opts)
 
-@command('debugsub',
-    [('r', 'rev', '',
-     _('revision to check'), _('REV'))],
-    _('[-r REV] [REV]'))
-def debugsub(ui, repo, rev=None):
-    ctx = scmutil.revsingle(repo, rev, None)
-    for k, v in sorted(ctx.substate.items()):
-        ui.write(('path %s\n') % k)
-        ui.write((' source   %s\n') % v[0])
-        ui.write((' revision %s\n') % v[1])
-
 @command('debugsuccessorssets',
     [],
     _('[REV]'))
--- a/mercurial/debugcommands.py	Thu Feb 02 10:04:34 2017 +0100
+++ b/mercurial/debugcommands.py	Thu Feb 02 10:04:55 2017 +0100
@@ -1884,6 +1884,17 @@
     with repo.wlock():
         repo.setparents(r1, r2)
 
+@command('debugsub',
+    [('r', 'rev', '',
+     _('revision to check'), _('REV'))],
+    _('[-r REV] [REV]'))
+def debugsub(ui, repo, rev=None):
+    ctx = scmutil.revsingle(repo, rev, None)
+    for k, v in sorted(ctx.substate.items()):
+        ui.write(('path %s\n') % k)
+        ui.write((' source   %s\n') % v[0])
+        ui.write((' revision %s\n') % v[1])
+
 @command('debugupgraderepo', [
     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
     ('', 'run', False, _('performs an upgrade')),