mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
c4c7beba44
Add debugextensions command to help users debug their extension problems. If there are no extensions command prints nothing, otherwise it prints names of extension modules. If quiet or verbose option is not specified it prints(after extensions name) last version of mercurial in which given module was tested for non internal modules or not tested with user mercurial version. If verbose is specified it prints following information for every extension: extension name, import source, testedwith and buglink information. Extensions are printed sorted by extension name.
84 lines
1.5 KiB
Perl
84 lines
1.5 KiB
Perl
$ hg debugextensions
|
|
|
|
$ debugpath=`pwd`/extwithoutinfos.py
|
|
|
|
$ cat > extwithoutinfos.py <<EOF
|
|
> EOF
|
|
|
|
$ cat >> $HGRCPATH <<EOF
|
|
> [extensions]
|
|
> color=
|
|
> histedit=
|
|
> patchbomb=
|
|
> rebase=
|
|
> mq=
|
|
> ext1 = $debugpath
|
|
> EOF
|
|
|
|
$ hg debugextensions
|
|
color
|
|
ext1 (untested!)
|
|
histedit
|
|
mq
|
|
patchbomb
|
|
rebase
|
|
|
|
$ hg debugextensions -v
|
|
color
|
|
location: */hgext/color.pyc (glob)
|
|
tested with: internal
|
|
ext1
|
|
location: */extwithoutinfos.pyc (glob)
|
|
histedit
|
|
location: */hgext/histedit.pyc (glob)
|
|
tested with: internal
|
|
mq
|
|
location: */hgext/mq.pyc (glob)
|
|
tested with: internal
|
|
patchbomb
|
|
location: */hgext/patchbomb.pyc (glob)
|
|
tested with: internal
|
|
rebase
|
|
location: */hgext/rebase.pyc (glob)
|
|
tested with: internal
|
|
|
|
$ hg debugextensions -Tjson
|
|
[
|
|
{
|
|
"buglink": "",
|
|
"name": "color",
|
|
"source": "*/hgext/color.pyc", (glob)
|
|
"testedwith": "internal"
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"name": "ext1",
|
|
"source": "*/extwithoutinfos.pyc", (glob)
|
|
"testedwith": ""
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"name": "histedit",
|
|
"source": "*/hgext/histedit.pyc", (glob)
|
|
"testedwith": "internal"
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"name": "mq",
|
|
"source": "*/hgext/mq.pyc", (glob)
|
|
"testedwith": "internal"
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"name": "patchbomb",
|
|
"source": "*/hgext/patchbomb.pyc", (glob)
|
|
"testedwith": "internal"
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"name": "rebase",
|
|
"source": "*/hgext/rebase.pyc", (glob)
|
|
"testedwith": "internal"
|
|
}
|
|
]
|