Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 30935:e46533c3201e
debugcommands: move 'debuglabelcomplete' in the new module
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 01 Feb 2017 17:39:31 +0100 |
parents | e1fa5fe9f9d4 |
children | 8de38479d60b |
comparison
equal
deleted
inserted
replaced
30934:6d642ecf1a89 | 30935:e46533c3201e |
---|---|
1034 if not repo.capable('known'): | 1034 if not repo.capable('known'): |
1035 raise error.Abort("known() not supported by target repository") | 1035 raise error.Abort("known() not supported by target repository") |
1036 flags = repo.known([bin(s) for s in ids]) | 1036 flags = repo.known([bin(s) for s in ids]) |
1037 ui.write("%s\n" % ("".join([f and "1" or "0" for f in flags]))) | 1037 ui.write("%s\n" % ("".join([f and "1" or "0" for f in flags]))) |
1038 | 1038 |
1039 @command('debuglabelcomplete', [], _('LABEL...')) | |
1040 def debuglabelcomplete(ui, repo, *args): | |
1041 '''backwards compatibility with old bash completion scripts (DEPRECATED)''' | |
1042 commands.debugnamecomplete(ui, repo, *args) | |
1043 | |
1039 @command('debugupgraderepo', [ | 1044 @command('debugupgraderepo', [ |
1040 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), | 1045 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), |
1041 ('', 'run', False, _('performs an upgrade')), | 1046 ('', 'run', False, _('performs an upgrade')), |
1042 ]) | 1047 ]) |
1043 def debugupgraderepo(ui, repo, run=False, optimize=None): | 1048 def debugupgraderepo(ui, repo, run=False, optimize=None): |