[Bug 6120] New: Experimental graphstyle doesn't allow UTF-8 characters

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Apr 17 07:51:13 EDT 2019


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

            Bug ID: 6120
           Summary: Experimental graphstyle doesn't allow UTF-8 characters
           Product: Mercurial
           Version: 4.9
          Hardware: Macintosh
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: hello+mercurial at alind.io
                CC: mercurial-devel at mercurial-scm.org

Using:

> [experimental] 
> graphstyle.parent = │

Makes hg log crash with the following error:

> $ hg log
> ** Unknown exception encountered with possibly-broken third-party extension prompt
> ** which supports versions unknown of Mercurial.
> ** Please disable prompt and try your action again.
> ** If that fixes the bug please report it to the extension author.
> ** Python 2.7.16 (default, Mar  4 2019, 09:01:38) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]
> ** Mercurial Distributed SCM (version 4.9)
> ** Extensions loaded: rebase, pager, shelve, histedit, extdiff, prompt, mercurial_keyring
> Traceback (most recent call last):
>   File "/usr/local/bin/hg", line 43, in <module>
>     dispatch.run()
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 99, in run
>     status = dispatch(req)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 225, in dispatch
>     ret = _runcatch(req) or 0
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 376, in _runcatch
>     return _callcatch(ui, _runcatchfunc)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 384, in _callcatch
>     return scmutil.callcatch(ui, func)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/scmutil.py", line 165, in callcatch
>     return func()
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 367, in _runcatchfunc
>     return _dispatch(req)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1021, in _dispatch
>     cmdpats, cmdoptions)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 756, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/hgext/pager.py", line 77, in pagecmd
>     return orig(ui, options, cmd, cmdfunc)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1030, in _runcommand
>     return cmdfunc()
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1018, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/util.py", line 1670, in check
>     return func(*args, **kwargs)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 619, in __call__
>     return util.checksignature(self.fn)(ui, *args, **opts)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/util.py", line 1670, in check
>     return func(*args, **kwargs)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/commands.py", line 3884, in log
>     displayfn(ui, repo, revs, displayer, getrenamed)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/logcmdutil.py", line 887, in displaygraphrevs
>     displaygraph(ui, repo, revdag, displayer, graphmod.asciiedges, getrenamed)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/logcmdutil.py", line 881, in displaygraph
>     graphmod.ascii(ui, state, type, char, lines, coldata)
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/graphmod.py", line 484, in ascii
>     line[:] = [c[-1:] if _drawgp(c, i) else parent for c in line]
>   File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/graphmod.py", line 480, in _drawgp
>     num = int(char[:-1])
> ValueError: invalid literal for int() with base 10: '\xe2\x94'

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


More information about the Mercurial-devel mailing list