changeset 38945:0dce1297dd01

phabricator: convert description into local The description from conduit is a unicode. Differential Revision: https://phab.mercurial-scm.org/D3980
author Cédric Krier <ced@b2ck.com>
date Wed, 25 Jul 2018 10:34:31 +0200
parents c1de67691d5b
children f3f109971359
files contrib/phabricator.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 = [