[Bug 4253] New: if color extension is enabled, "hg pull -u" in a no repos directory will raise a error

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon May 19 01:49:51 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4253

          Priority: normal
            Bug ID: 4253
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: if color extension is enabled, "hg pull -u" in a no
                    repos directory will raise a error
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: bearsprite at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.0
         Component: color
           Product: Mercurial

E:\>hg pull -u
Traceback (most recent call last):
  File "D:\Python27\Scripts\hg", line 38, in <module>
    mercurial.dispatch.run()
  File "D:\Python27\Lib\site-packages\mercurial\dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "D:\Python27\Lib\site-packages\mercurial\dispatch.py", line 69, in
dispatch
    ret = _runcatch(req)
  File "D:\Python27\Lib\site-packages\mercurial\dispatch.py", line 181, in
_runcatch
    ui.warn(_("abort: %s!\n") % inst)
  File "D:\Python27\Lib\site-packages\mercurial\ui.py", line 714, in warn
    self.write_err(*msg, **opts)
  File "D:\Python27\Lib\site-packages\hgext\color.py", line 377, in write_err
    *[self.label(str(a), label) for a in args], **opts)
  File "D:\Python27\Lib\site-packages\hgext\color.py", line 388, in label
    elif valideffect(l):
  File "D:\Python27\Lib\site-packages\hgext\color.py", line 319, in valideffect
    elif effect in _terminfo_params or effect[:-11] in _terminfo_params:
TypeError: argument of type 'bool' is not iterable

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


More information about the Mercurial-devel mailing list