Show More
@@ -3717,6 +3717,23 b' def debugsub(ui, repo, rev=None):' | |||||
3717 | ui.writenoi18n(b' revision %s\n' % v[1]) |
|
3717 | ui.writenoi18n(b' revision %s\n' % v[1]) | |
3718 |
|
3718 | |||
3719 |
|
3719 | |||
|
3720 | @command(b'debugshell', optionalrepo=True) | |||
|
3721 | def debugshell(ui, repo): | |||
|
3722 | """run an interactive Python interpreter | |||
|
3723 | ||||
|
3724 | The local namespace is provided with a reference to the ui and | |||
|
3725 | the repo instance (if available). | |||
|
3726 | """ | |||
|
3727 | import code | |||
|
3728 | ||||
|
3729 | imported_objects = { | |||
|
3730 | 'ui': ui, | |||
|
3731 | 'repo': repo, | |||
|
3732 | } | |||
|
3733 | ||||
|
3734 | code.interact(local=imported_objects) | |||
|
3735 | ||||
|
3736 | ||||
3720 | @command( |
|
3737 | @command( | |
3721 | b'debugsuccessorssets', |
|
3738 | b'debugsuccessorssets', | |
3722 | [(b'', b'closest', False, _(b'return closest successors sets only'))], |
|
3739 | [(b'', b'closest', False, _(b'return closest successors sets only'))], |
@@ -130,6 +130,7 b' Show debug commands if there are no othe' | |||||
130 | debugrevspec |
|
130 | debugrevspec | |
131 | debugserve |
|
131 | debugserve | |
132 | debugsetparents |
|
132 | debugsetparents | |
|
133 | debugshell | |||
133 | debugsidedata |
|
134 | debugsidedata | |
134 | debugssl |
|
135 | debugssl | |
135 | debugstrip |
|
136 | debugstrip | |
@@ -319,6 +320,7 b' Show all commands + options' | |||||
319 | debugrevspec: optimize, show-revs, show-set, show-stage, no-optimized, verify-optimized |
|
320 | debugrevspec: optimize, show-revs, show-set, show-stage, no-optimized, verify-optimized | |
320 | debugserve: sshstdio, logiofd, logiofile |
|
321 | debugserve: sshstdio, logiofd, logiofile | |
321 | debugsetparents: |
|
322 | debugsetparents: | |
|
323 | debugshell: | |||
322 | debugsidedata: changelog, manifest, dir |
|
324 | debugsidedata: changelog, manifest, dir | |
323 | debugssl: |
|
325 | debugssl: | |
324 | debugstrip: rev, force, no-backup, nobackup, , keep, bookmark, soft |
|
326 | debugstrip: rev, force, no-backup, nobackup, , keep, bookmark, soft |
@@ -1069,6 +1069,7 b' Test list of internal help commands' | |||||
1069 | debugsetparents |
|
1069 | debugsetparents | |
1070 | manually set the parents of the current working directory |
|
1070 | manually set the parents of the current working directory | |
1071 | (DANGEROUS) |
|
1071 | (DANGEROUS) | |
|
1072 | debugshell run an interactive Python interpreter | |||
1072 | debugsidedata |
|
1073 | debugsidedata | |
1073 | dump the side data for a cl/manifest/file revision |
|
1074 | dump the side data for a cl/manifest/file revision | |
1074 | debugssl test a secure connection to a server |
|
1075 | debugssl test a secure connection to a server |
General Comments 0
You need to be logged in to leave comments.
Login now