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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Feb 13 11:07:13 EST 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 efbf6a59699575d328d71a6cdcb9a8db25a85c6e
# Parent  f25d7b04bb99f20965efa0bf042b485d8bcd58b8
# EXP-Topic debugcommands
debugcommands: move 'debuglabelcomplete' in the new module

diff -r f25d7b04bb99 -r efbf6a596995 mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Wed Feb 01 17:33:46 2017 +0100
+++ 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