diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -3717,6 +3717,15 @@ ui.writenoi18n(b' revision %s\n' % v[1]) +@command(b'debugshell', optionalrepo=True) +def debugshell(ui, repo): + import code + imported_objects = { + 'ui': ui, + 'repo': repo, + } + code.interact(local=imported_objects) + @command( b'debugsuccessorssets', [(b'', b'closest', False, _(b'return closest successors sets only'))],