/!\ This page is primarily intended for Mercurial's developers.

{i} This page does not meet our wiki style guidelines. Please help improve this page by cleaning up its formatting.

debugshell extension

After enabling the extension, "hg debugshell" or "hg dbsh" will drop user into an interactive python shell along with the mercurial module, a repo object and its changelog & manifest.

The extension is available in the main repo: contrib/debugshell.py

$ hg debugshell
loaded repo : /path/to/repo
using source: /path/to/mercurial/source
>>> repo
<mercurial.localrepo.localrepository object at 0x0>
>>> cl
<mercurial.changelog.changelog object at 0x0>
>>> mf
<mercurial.manifest.manifest object at 0x0>
>>> mercurial
<proxied module 'mercurial'>
>>> 

Download


CategoryBundledExtension

debugshellExtension (last edited 2017-03-26 20:35:15 by PulkitGoyal)