Commit Graph

7 Commits

Author SHA1 Message Date
Yuya Nishihara
fd192b732a debugextensions: hide "ships-with-hg-core" magic string (BC)
Since we have "bundled" flag, we no longer need to rephrase "ships-with-hg-core"
to show as "internal".
2016-08-26 23:31:17 +09:00
Yuya Nishihara
1e5148d260 debugextensions: show ships-with-hg-core state as a separate field
This is less magical than rephrasing ships-with-hg-core as internal, and
we can distinguish "internal" liar. "tested with: internal" will be hidden
by the next patch.
2016-08-31 23:22:07 +09:00
Yuya Nishihara
10ae6ca778 test-debugextensions: add dummy extension to make ifcontains() test more solid
If testedwith were a string, ifcontains("3.2", testedwith) would match "3.2.1".
New test added to cover that.
2016-08-31 23:36:37 +09:00
Yuya Nishihara
dbb4c18c54 debugextension: change "testedwith" to a list (BC)
It wasn't a list since the formatter couldn't process a list. We have no
such problem now and the -T option is experimental, so we can change it.
2016-03-19 17:19:03 -07:00
Kevin Bullock
65d71bd69c test-debugextensions: passes with byte-compilation disabled (issue5147) 2016-03-20 17:30:56 -07:00
Matt Harbison
6ea942a477 test-debugextensions: sanitize JSON output for Windows
Windows is printing a double backslash, which isn't handled by (glob):

  --- c:/Users/Matt/Projects/hg/tests/test-debugextensions.t
  +++ c:/Users/Matt/Projects/hg/tests/test-debugextensions.t.err
  @@ -47,7 +47,7 @@
      {
       "buglink": "",
       "name": "color",
  -    "source": "*/hgext/color.pyc", (glob)
  +    "source": "c:\\Users\\Matt\\Projects\\hg\\hgext\\color.pyc",
       "testedwith": "internal"
      },
      {
2015-10-01 21:24:10 -04:00
liscju
c4c7beba44 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.
2015-09-10 16:53:07 +02:00