[Bug 4523] New: stack trace with "hg log -Cv -Tjson"

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Feb 2 16:55:46 UTC 2015


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

          Priority: normal
            Bug ID: 4523
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: stack trace with "hg log -Cv -Tjson"
          Severity: bug
    Classification: Unclassified
                OS: Other
          Reporter: danek.duvall at oracle.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.3
         Component: Mercurial
           Product: Mercurial

The json style emits a stack trace when copies are requested.  I see this on
3.2.3 and 3.3:

    $ hg init r; cd r
    $ echo a > a; hg add a; hg commit -m "add a"
    $ hg cp a b; hg commit -m "add b"
    $ hg log -Cv -Tjson
    ** unknown exception encountered, please report by visiting
    ** http://mercurial.selenic.com/wiki/BugTracker
    ** Python 2.6.8 (unknown, Dec 23 2014, 18:01:49) [C]
    ** Mercurial Distributed SCM (version 3.3)
    ** Extensions loaded: 
    Traceback (most recent call last):
      File ".../bin/hg", line 43, in <module>
        mercurial.dispatch.run()
      File ".../lib/python/mercurial/dispatch.py", line 28, in run
        sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
      File ".../lib/python/mercurial/dispatch.py", line 71, in dispatch
        ret = _runcatch(req)
      File ".../lib/python/mercurial/dispatch.py", line 140, in _runcatch
        return _dispatch(req)
      File ".../lib/python/mercurial/dispatch.py", line 860, in _dispatch
        cmdpats, cmdoptions)
      File ".../lib/python/mercurial/dispatch.py", line 621, in runcommand
        ret = _runcommand(ui, options, cmd, d)
      File ".../lib/python/mercurial/dispatch.py", line 951, in _runcommand
        return checkargs()
      File ".../lib/python/mercurial/dispatch.py", line 922, in checkargs
        return cmdfunc()
      File ".../lib/python/mercurial/dispatch.py", line 857, in <lambda>
        d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
      File ".../lib/python/mercurial/util.py", line 711, in check
        return func(*args, **kwargs)
      File ".../lib/python/mercurial/commands.py", line 4507, in log
        displayer.show(ctx, copies=copies, matchfn=revmatchfn)
      File ".../lib/python/mercurial/cmdutil.py", line 878, in show
        self._show(ctx, copies, matchfn, props)
      File ".../lib/python/mercurial/cmdutil.py", line 1095, in _show
        for k in copies))
      File ".../lib/python/mercurial/cmdutil.py", line 1095, in <genexpr>
        for k in copies))
      File ".../lib/python/mercurial/encoding.py", line 383, in jsonescape
        return ''.join(_jsonmap[c] for c in toutf8b(s))
      File ".../lib/python/mercurial/encoding.py", line 419, in toutf8b
        s.decode('utf-8')
    AttributeError: 'tuple' object has no attribute 'decode'

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


More information about the Mercurial-devel mailing list