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

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 14, 2017, 3:29 p.m.
Message ID <e4aebee497335d7cff13.1487086160@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/18476/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show

Comments

Pierre-Yves David - Feb. 14, 2017, 3:29 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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

Patch

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)
 
-@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])))
 
+@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')),