phabricator: convert description into local
authorCédric Krier <ced@b2ck.com>
Wed, 25 Jul 2018 10:34:31 +0200
changeset 38945 0dce1297dd01
parent 38944 c1de67691d5b
child 38946 f3f109971359
phabricator: convert description into local The description from conduit is a unicode. Differential Revision: https://phab.mercurial-scm.org/D3980
contrib/phabricator.py
--- a/contrib/phabricator.py	Thu Jul 19 23:15:21 2018 -0700
+++ b/contrib/phabricator.py	Wed Jul 25 10:34:31 2018 +0200
@@ -570,6 +570,7 @@
                 drevid = drevids[i]
                 drev = [d for d in drevs if int(d[r'id']) == drevid][0]
                 newdesc = getdescfromdrev(drev)
+                newdesc = encoding.unitolocal(newdesc)
                 # Make sure commit message contain "Differential Revision"
                 if old.description() != newdesc:
                     parents = [