[Bug 5856] New: hg debugcolor --style traceback in plain mode

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Apr 25 23:04:19 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=5856

            Bug ID: 5856
           Summary: hg debugcolor --style traceback in plain mode
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: zash at zash.se
                CC: mercurial-devel at mercurial-scm.org

$ HGPLAIN= ./hg debugcolor --style
*** failed to import extension evolve from
/home/zash/src/hg-evolve/hgext3rd/evolve: No module named wireproto
color mode: None
available style:
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
** Mercurial Distributed SCM (version 4.6rc1+4-f73842ecedcd)
** Extensions loaded: extdiff, githelp, histedit, patchbomb, purge, rebase,
releasenotes, relink, schemes, shelve, show, strip, transplant
Traceback (most recent call last):
  File "./hg", line 41, in <module>
    dispatch.run()
  File "/home/zash/src/hg/mercurial/dispatch.py", line 90, in run
    status = (dispatch(req) or 0)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 210, in dispatch
    ret = _runcatch(req)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 351, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 359, in _callcatch
    return scmutil.callcatch(ui, func)
  File "/home/zash/src/hg/mercurial/scmutil.py", line 160, in callcatch
    return func()
  File "/home/zash/src/hg/mercurial/dispatch.py", line 341, in _runcatchfunc
    return _dispatch(req)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 971, in _dispatch
    cmdpats, cmdoptions)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 727, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/zash/src/hg/mercurial/dispatch.py", line 979, in _runcommand
    return cmdfunc()
  File "/home/zash/src/hg/mercurial/dispatch.py", line 968, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/home/zash/src/hg/mercurial/util.py", line 1553, in check
    return func(*args, **kwargs)
  File "/home/zash/src/hg/mercurial/debugcommands.py", line 441, in debugcolor
    return _debugdisplaystyle(ui)
  File "/home/zash/src/hg/mercurial/debugcommands.py", line 465, in
_debugdisplaystyle
    width = max(len(s) for s in ui._styles)
ValueError: max() arg is an empty sequence

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list