equal
deleted
inserted
replaced
16 def pdb(ui, repo, msg, **opts): |
16 def pdb(ui, repo, msg, **opts): |
17 objects = { |
17 objects = { |
18 'mercurial': mercurial, |
18 'mercurial': mercurial, |
19 'repo': repo, |
19 'repo': repo, |
20 'cl': repo.changelog, |
20 'cl': repo.changelog, |
21 'mf': repo.manifest, |
21 'mf': repo.manifestlog, |
22 } |
22 } |
23 |
23 |
24 code.interact(msg, local=objects) |
24 code.interact(msg, local=objects) |
25 |
25 |
26 def ipdb(ui, repo, msg, **opts): |
26 def ipdb(ui, repo, msg, **opts): |
27 import IPython |
27 import IPython |
28 |
28 |
29 cl = repo.changelog |
29 cl = repo.changelog |
30 mf = repo.manifest |
30 mf = repo.manifestlog |
31 cl, mf # use variables to appease pyflakes |
31 cl, mf # use variables to appease pyflakes |
32 |
32 |
33 IPython.embed() |
33 IPython.embed() |
34 |
34 |
35 @command('debugshell|dbsh', []) |
35 @command('debugshell|dbsh', []) |