changeset 31402:ea0395eec67b

debuglabelcomplete: fix to call debugnamecomplete in new location debugnamecomplete was moved in a9aa67ba from commands to debugcommands, but debuglabelcomplete was not modified to call it in its new location.
author Kyle Lippincott <spectral@google.com>
date Tue, 14 Mar 2017 13:10:30 -0700
parents ed23f929af38
children 10c17f8bfcf3
files mercurial/debugcommands.py tests/test-completion.t
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Mar 13 13:06:37 2017 -0700
+++ b/mercurial/debugcommands.py	Tue Mar 14 13:10:30 2017 -0700
@@ -1127,7 +1127,7 @@
 @command('debuglabelcomplete', [], _('LABEL...'))
 def debuglabelcomplete(ui, repo, *args):
     '''backwards compatibility with old bash completion scripts (DEPRECATED)'''
-    commands.debugnamecomplete(ui, repo, *args)
+    debugnamecomplete(ui, repo, *args)
 
 @command('debuglocks',
          [('L', 'force-lock', None, _('free the store lock (DANGEROUS)')),
--- a/tests/test-completion.t	Mon Mar 13 13:06:37 2017 -0700
+++ b/tests/test-completion.t	Tue Mar 14 13:10:30 2017 -0700
@@ -358,3 +358,18 @@
   fee
   fie
   fo
+
+Test debuglabelcomplete, a deprecated name for debugnamecomplete that is still
+used for completions in some shells.
+
+  $ hg debuglabelcomplete
+  Fum
+  default
+  fee
+  fie
+  fo
+  tip
+  $ hg debuglabelcomplete f
+  fee
+  fie
+  fo