diff hgext/phabricator.py @ 39654:4057e38bba76

phabricator: fix templating bug by using hybriddict Differential Revision: https://phab.mercurial-scm.org/D4604
author Augie Fackler <raf@durin42.com>
date Sat, 15 Sep 2018 01:16:31 -0400
parents d2c81e83de2a
children 87539f615b87
line wrap: on
line diff
--- a/hgext/phabricator.py	Sat Sep 15 01:13:37 2018 -0400
+++ b/hgext/phabricator.py	Sat Sep 15 01:16:31 2018 -0400
@@ -62,6 +62,7 @@
     scmutil,
     smartset,
     tags,
+    templateutil,
     url as urlmod,
     util,
 )
@@ -1006,7 +1007,7 @@
     ctx = context.resource(mapping, b'ctx')
     m = _differentialrevisiondescre.search(ctx.description())
     if m:
-        return {
+        return templateutil.hybriddict({
             b'url': m.group(b'url'),
             b'id': b"D{}".format(m.group(b'id')),
-        }
+        })