# HG changeset patch # User Sean Farley # Date 1373821356 18000 # Node ID 6ccec36a1fd9a55dc64ad9c62d4feb5ce6d19a5c # Parent 3bc6753612066fe8518c5d85583ec88411166f7d debugshell: add function to embed ipython diff -r 3bc675361206 -r 6ccec36a1fd9 contrib/debugshell.py --- 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,