phabricator: convert description into local
The description from conduit is a unicode.
Differential Revision: https://phab.mercurial-scm.org/D3980
--- 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 = [