diff -r 8de38479d60b -r a9aa67ba3f96 mercurial/commands.py --- a/mercurial/commands.py Wed Feb 01 17:40:20 2017 +0100 +++ b/mercurial/commands.py Wed Feb 01 17:41:12 2017 +0100 @@ -1862,26 +1862,6 @@ with repo.wlock(False): return cmdutil.copy(ui, repo, pats, opts) -@command('debugnamecomplete', [], _('NAME...')) -def debugnamecomplete(ui, repo, *args): - '''complete "names" - tags, open branch names, bookmark names''' - - names = set() - # since we previously only listed open branches, we will handle that - # specially (after this for loop) - for name, ns in repo.names.iteritems(): - if name != 'branches': - names.update(ns.listnames(repo)) - names.update(tag for (tag, heads, tip, closed) - in repo.branchmap().iterbranches() if not closed) - completions = set() - if not args: - args = [''] - for a in args: - completions.update(n for n in names if n.startswith(a)) - ui.write('\n'.join(sorted(completions))) - ui.write('\n') - @command('debuglocks', [('L', 'force-lock', None, _('free the store lock (DANGEROUS)')), ('W', 'force-wlock', None,