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

            Bug ID: 6016
           Summary: Revision selection prompt tries to translate changeset
                    description
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzi...@mercurial-scm.org
          Reporter: m...@manueljacob.de
                CC: mercurial-devel@mercurial-scm.org,
                    pierre-yves.da...@ens-lyon.org

How to reproduce:
- create one changeset with two children (one of them containing a non-ASCII
character in the description)
- update to the parent
- run "hg next"

Traceback (most recent call last):
  File "/bin/hg", line 41, in <module>
    dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 90, in
run
    status = dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 213, in
dispatch
    ret = _runcatch(req) or 0
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 354, in
_runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 362, in
_callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/lib/python2.7/site-packages/mercurial/scmutil.py", line 161, in
callcatch
    return func()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 344, in
_runcatchfunc
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 984, in
_dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 730, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 992, in
_runcommand
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 981, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1528, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1528, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/hgext/mq.py", line 3600, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1528, in
check
    return func(*args, **kwargs)
  File
"/home/manu/.local/lib/python2.7/site-packages/hgext3rd/evolve/__init__.py",
line 1165, in cmdnext
    choosedrev = utility.revselectionprompt(ui, repo, crevs, cheader)
  File
"/home/manu/.local/lib/python2.7/site-packages/hgext3rd/evolve/utility.py",
line 165, in revselectionprompt
    curctx.description().split("\n")[0]))
  File "/usr/lib/python2.7/site-packages/mercurial/i18n.py", line 78, in
gettext
    paragraphs = [p.decode("ascii") for p in message.split('\n\n')]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 60:
ordinal not in range(128)

The problem is that, beginning with changeset 846f7d4fe47e, the function
"revselectionprompt" tries to translate the changeset description.  I think
that this is incorrect in all cases, but only if one of the children contain a
non-ASCII character, there will be an exception.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to