Mercurial > hg
changeset 19772:6ccec36a1fd9
debugshell: add function to embed ipython
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 14 Jul 2013 12:02:36 -0500 |
parents | 3bc675361206 |
children | 51799a965446 |
files | contrib/debugshell.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/debugshell.py Sun Jul 14 12:10:52 2013 -0500 +++ b/contrib/debugshell.py Sun Jul 14 12:02:36 2013 -0500 @@ -14,6 +14,14 @@ 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,