[PATCH 1 of 6 V2] debugcommands: move 'debuglabelcomplete' in the new module

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Feb 14 15:29:20 UTC 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1485967171 -3600
#      Wed Feb 01 17:39:31 2017 +0100
# Node ID e4aebee497335d7cff13b8df710ad890c4c13f9a
# Parent  f2ad0d8047009e6e58ab1fa34ae7107714f5dc30
# EXP-Topic debugcommands
debugcommands: move 'debuglabelcomplete' in the new module

diff -r f2ad0d804700 -r e4aebee49733 mercurial/commands.py
--- a/mercurial/commands.py	Tue Feb 14 01:52:16 2017 +0530
+++ b/mercurial/commands.py	Wed Feb 01 17:39:31 2017 +0100
@@ -1863,11 +1863,6 @@ def copy(ui, repo, *pats, **opts):
     with repo.wlock(False):
         return cmdutil.copy(ui, repo, pats, opts)
 
- at command('debuglabelcomplete', [], _('LABEL...'))
-def debuglabelcomplete(ui, repo, *args):
-    '''backwards compatibility with old bash completion scripts (DEPRECATED)'''
-    debugnamecomplete(ui, repo, *args)
-
 @command('debugmergestate', [], '')
 def debugmergestate(ui, repo, *args):
     """print merge state
diff -r f2ad0d804700 -r e4aebee49733 mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Tue Feb 14 01:52:16 2017 +0530
+++ b/mercurial/debugcommands.py	Wed Feb 01 17:39:31 2017 +0100
@@ -1036,6 +1036,11 @@ def debugknown(ui, repopath, *ids, **opt
     flags = repo.known([bin(s) for s in ids])
     ui.write("%s\n" % ("".join([f and "1" or "0" for f in flags])))
 
+ at command('debuglabelcomplete', [], _('LABEL...'))
+def debuglabelcomplete(ui, repo, *args):
+    '''backwards compatibility with old bash completion scripts (DEPRECATED)'''
+    commands.debugnamecomplete(ui, repo, *args)
+
 @command('debugupgraderepo', [
     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
     ('', 'run', False, _('performs an upgrade')),


More information about the Mercurial-devel mailing list