| 1 |
"""a python shell with repo, changelog & manifest objects (DEPRECATED) |
| 2 |
|
| 3 |
The functionality of this extension has been included in core Mercurial since |
| 4 |
version 7.1. Please use the core :hg:`debugshell` command instead. |
| 5 |
""" |
| 6 |
|
| 7 |
from __future__ import annotations |
| 8 |
|
| 9 |
from mercurial import commands |
| 10 |
|
| 11 |
from mercurial.main_script import cmd_finder |
| 12 |
|
| 13 |
|
| 14 |
def uisetup(ui): |
| 15 |
choice, _allcmds = cmd_finder.find_possible(b'dbsh', commands.table) |
| 16 |
|
| 17 |
if b'dbsh' not in choice and ui.config(b'alias', b'dbsh', None) is None: |
| 18 |
ui.setconfig(b'alias', b'dbsh', b'debugshell', source=b'debugshell') |