comparison tests/test-debugextensions.t @ 26351:8c7d8d5e1e0f

mercurial: add debugextensions command (issue4676) 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.
author liscju <piotr.listkiewicz@gmail.com>
date Thu, 10 Sep 2015 16:53:07 +0200
parents
children 1f8208a7277e
comparison
equal deleted inserted replaced
26350:ccab61d84ea7 26351:8c7d8d5e1e0f
1 $ hg debugextensions
2
3 $ debugpath=`pwd`/extwithoutinfos.py
4
5 $ cat > extwithoutinfos.py <<EOF
6 > EOF
7
8 $ cat >> $HGRCPATH <<EOF
9 > [extensions]
10 > color=
11 > histedit=
12 > patchbomb=
13 > rebase=
14 > mq=
15 > ext1 = $debugpath
16 > EOF
17
18 $ hg debugextensions
19 color
20 ext1 (untested!)
21 histedit
22 mq
23 patchbomb
24 rebase
25
26 $ hg debugextensions -v
27 color
28 location: */hgext/color.pyc (glob)
29 tested with: internal
30 ext1
31 location: */extwithoutinfos.pyc (glob)
32 histedit
33 location: */hgext/histedit.pyc (glob)
34 tested with: internal
35 mq
36 location: */hgext/mq.pyc (glob)
37 tested with: internal
38 patchbomb
39 location: */hgext/patchbomb.pyc (glob)
40 tested with: internal
41 rebase
42 location: */hgext/rebase.pyc (glob)
43 tested with: internal
44
45 $ hg debugextensions -Tjson
46 [
47 {
48 "buglink": "",
49 "name": "color",
50 "source": "*/hgext/color.pyc", (glob)
51 "testedwith": "internal"
52 },
53 {
54 "buglink": "",
55 "name": "ext1",
56 "source": "*/extwithoutinfos.pyc", (glob)
57 "testedwith": ""
58 },
59 {
60 "buglink": "",
61 "name": "histedit",
62 "source": "*/hgext/histedit.pyc", (glob)
63 "testedwith": "internal"
64 },
65 {
66 "buglink": "",
67 "name": "mq",
68 "source": "*/hgext/mq.pyc", (glob)
69 "testedwith": "internal"
70 },
71 {
72 "buglink": "",
73 "name": "patchbomb",
74 "source": "*/hgext/patchbomb.pyc", (glob)
75 "testedwith": "internal"
76 },
77 {
78 "buglink": "",
79 "name": "rebase",
80 "source": "*/hgext/rebase.pyc", (glob)
81 "testedwith": "internal"
82 }
83 ]