Patchwork D3979: contrib/phabricator: Convert description into local

login
register
mail settings
Submitter phabricator
Date July 25, 2018, 8:35 a.m.
Message ID <differential-rev-PHID-DREV-ddfnshbfe22mp3iieabr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32938/
State New
Headers show

Comments

phabricator - July 25, 2018, 8:35 a.m.
ced created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The description from conduit is a unicode.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3979

AFFECTED FILES
  contrib/phabricator.py

CHANGE DETAILS




To: ced, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/phabricator.py b/contrib/phabricator.py
--- a/contrib/phabricator.py
+++ b/contrib/phabricator.py
@@ -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 = [