Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2010-07-18 23:06:23
Size: 467
Comment:
Revision 5 as of 2010-08-13 17:00:27
Size: 724
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= debugshell = = debugshell extension =
Line 3: Line 3:
Drop user into an interactive python shell along with
the mercurial module, a repo object and its changelog
and manifest.
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
Line 21: Line 21:

[[http://selenic.com/repo/hg/raw-file/tip/contrib/debugshell.py|Download]]

----
CategoryExtension

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>
>>> mnfst
<mercurial.manifest.manifest object at 0x0>
>>> mercurial
<proxied module 'mercurial'>
>>> 

Download


CategoryExtension

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