phabricator: use True primitive instead of b'true' for phabupdate actions stable
authorIan Moody <moz-ian@perix.co.uk>
Wed, 23 Oct 2019 22:24:14 +0100
branchstable
changeset 43350 132ddd1cba85
parent 43349 c3e10f705a6c
child 43351 cb0d80831ee0
phabricator: use True primitive instead of b'true' for phabupdate actions Something I'd missed in the creatediff port. This didn't matter before with the old PHP form style wireformat, but breaks with the new arcanist format. Differential Revision: https://phab.mercurial-scm.org/D7152
hgext/phabricator.py
--- a/hgext/phabricator.py	Wed Oct 23 15:07:56 2019 +0100
+++ b/hgext/phabricator.py	Wed Oct 23 22:24:14 2019 +0100
@@ -1613,7 +1613,7 @@
 
     actions = []
     for f in flags:
-        actions.append({b'type': f, b'value': b'true'})
+        actions.append({b'type': f, b'value': True})
 
     drevs = querydrev(repo, spec)
     for i, drev in enumerate(drevs):