Mercurial > hg
annotate contrib/debugshell.py @ 15040:a494b54b6ed3 stable
win32: msvcr71.dll should be used for python 2.4 and 2.5
Following is list of C-Runtime for versions of CPython on windows:
- python 2.4.5 => MSVCR71.dll
- python 2.5.4 => MSVCR71.dll
- python 2.6.6 => MSVCR90.dll
- python 2.7 => MSVCR90.dll
- python 3.1.2 => MSVCR90.dll
author | Shun-ichi GOTO <shunichi.goto@gmail.com> |
---|---|
date | Mon, 08 Aug 2011 14:32:27 +0900 |
parents | 6b7b99867ada |
children | 3bc675361206 |
rev | line source |
---|---|
11633 | 1 # debugshell extension |
2 """a python shell with repo, changelog & manifest objects""" | |
3 | |
4 import mercurial | |
5 import code | |
6 | |
7 def debugshell(ui, repo, **opts): | |
8 objects = { | |
9 'mercurial': mercurial, | |
10 'repo': repo, | |
11 'cl': repo.changelog, | |
12 'mf': repo.manifest, | |
13 } | |
14 bannermsg = "loaded repo : %s\n" \ | |
15 "using source: %s" % (repo.root, | |
16 mercurial.__path__[0]) | |
17 code.interact(bannermsg, local=objects) | |
18 | |
19 cmdtable = { | |
20 "debugshell|dbsh": (debugshell, []) | |
21 } |