Mercurial > public > mercurial-scm > hg-stable
diff contrib/debugshell.py @ 21926:6c36dc6cd61a stable 3.1-rc
merge default into stable for 3.1 code freeze
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 19 Jul 2014 00:10:22 -0500 |
parents | 8b5c039f2b4f |
children | e4b512bb6386 |
line wrap: on
line diff
--- a/contrib/debugshell.py Sat Jul 12 02:23:17 2014 -0700 +++ b/contrib/debugshell.py Sat Jul 19 00:10:22 2014 -0500 @@ -4,6 +4,10 @@ import sys import mercurial import code +from mercurial import cmdutil + +cmdtable = {} +command = cmdutil.command(cmdtable) def pdb(ui, repo, msg, **opts): objects = { @@ -24,6 +28,7 @@ IPython.embed() +@command('debugshell|dbsh', []) def debugshell(ui, repo, **opts): bannermsg = "loaded repo : %s\n" \ "using source: %s" % (repo.root, @@ -47,7 +52,3 @@ debugger = 'pdb' getattr(sys.modules[__name__], debugger)(ui, repo, bannermsg, **opts) - -cmdtable = { - "debugshell|dbsh": (debugshell, []) -}