[Bug 6040] New: phabsend UnicodeEncodeError on commit which uses accents
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Tue Dec 18 16:52:26 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=6040
Bug ID: 6040
Summary: phabsend UnicodeEncodeError on commit which uses
accents
Product: Mercurial
Version: 4.8.1
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: third-party
Assignee: bugzilla at mercurial-scm.org
Reporter: arthur.lutz at logilab.fr
CC: mercurial-devel at mercurial-scm.org
On a commit which contains a "é" character in the commit message I get :
```
$ hg phabsend -r .
NEW - 44aa0f4e0013: XXX ajouté
Send the above changes to https://phab.example.org (yn)? y
** Unknown exception encountered with possibly-broken third-party extension thg
** which supports versions 4.3 of Mercurial.
** Please disable thg and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
** Mercurial Distributed SCM (version 4.8)
** Extensions loaded: strip, pager, evolve, topic, rebase, record, histedit,
purge, hggit, thg, patchbomb, phabricator
Traceback (most recent call last):
File "/usr/bin/hg", line 43, in <module>
dispatch.run()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 96, in
run
status = dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 220, in
dispatch
ret = _runcatch(req) or 0
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 363, in
_runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 371, in
_callcatch
return scmutil.callcatch(ui, func)
File "/usr/lib/python2.7/dist-packages/mercurial/scmutil.py", line 166, in
callcatch
return func()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 354, in
_runcatchfunc
return _dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 994, in
_dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 737, in
runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.7/dist-packages/hgext/pager.py", line 77, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1003, in
_runcommand
return cmdfunc()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 991, in
<lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 1646, in
check
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/hgext/phabricator.py", line 143, in
inner
return fn(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/hgext/phabricator.py", line 532, in
phabsend
ctx, revid, lastrevid, oldnode, olddiff, actions)
File "/usr/lib/python2.7/dist-packages/hgext/phabricator.py", line 440, in
createdifferentialrevision
revision = callconduit(repo, b'differential.revision.edit', params)
File "/usr/lib/python2.7/dist-packages/hgext/phabricator.py", line 203, in
callconduit
data = urlencodenested(params)
File "/usr/lib/python2.7/dist-packages/hgext/phabricator.py", line 167, in
urlencodenested
return util.urlreq.urlencode(flatparams)
File "/usr/lib/python2.7/urllib.py", line 1342, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position
29: ordinal not in range(128)
```
(sorry couldn't find a phabricator component, so using third-party for now)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list