[PATCH 3 of 4] debugshell: add function to embed ipython
Sean Farley
sean.michael.farley at gmail.com
Fri Sep 20 15:28:32 CDT 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1373821356 18000
# Sun Jul 14 12:02:36 2013 -0500
# Node ID 4c1a591f6674905b8b2ecd09ae2a85de0ba7e84c
# Parent aa9ff65add03b8e535c115c67d5c12c64231b019
debugshell: add function to embed ipython
diff --git a/contrib/debugshell.py b/contrib/debugshell.py
--- a/contrib/debugshell.py
+++ b/contrib/debugshell.py
@@ -12,10 +12,18 @@
'mf': repo.manifest,
}
code.interact(msg, local=objects)
+def ipdb(ui, repo, msg, **opts):
+ import IPython
+
+ cl = repo.changelog
+ mf = repo.manifest
+
+ IPython.embed()
+
def debugshell(ui, repo, **opts):
bannermsg = "loaded repo : %s\n" \
"using source: %s" % (repo.root,
mercurial.__path__[0])
More information about the Mercurial-devel
mailing list