Attachment 'debugshell.py'
Download 1 # debugshell extension
2
3 import mercurial
4 import code
5
6 def debugshell(ui, repo, **opts):
7 shell_locals = {
8 'mercurial': mercurial,
9 'repo': repo,
10 'cl': repo.changelog,
11 'mnfst': repo.manifest,
12 }
13 bannermsg = "loaded repo : %s\n" \
14 "using source: %s" % (repo.root,
15 mercurial.__path__[0])
16 code.interact(bannermsg, local=shell_locals)
17
18 cmdtable = {
19 "debugshell|dbsh": (debugshell, [])
20 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.