File: debugshell.py

package info (click to toggle)
mercurial 7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 46,124 kB
  • sloc: python: 214,491; ansic: 56,606; tcl: 3,715; sh: 1,879; lisp: 1,483; cpp: 864; makefile: 792; javascript: 649; xml: 36
file content (18 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""a python shell with repo, changelog & manifest objects (DEPRECATED)

The functionality of this extension has been included in core Mercurial since
version 7.1. Please use the core :hg:`debugshell` command instead.
"""

from __future__ import annotations

from mercurial import commands

from mercurial.main_script import cmd_finder


def uisetup(ui):
    choice, _allcmds = cmd_finder.find_possible(b'dbsh', commands.table)

    if b'dbsh' not in choice and ui.config(b'alias', b'dbsh', None) is None:
        ui.setconfig(b'alias', b'dbsh', b'debugshell', source=b'debugshell')