hgext/phabricator.py
changeset 41078 46e0563c67db
parent 41073 536beb130f3c
parent 41017 d7d3164e6a31
child 41080 9d35ae3d9999
--- a/hgext/phabricator.py	Thu Dec 27 15:19:46 2018 -0800
+++ b/hgext/phabricator.py	Sun Dec 30 17:31:57 2018 +0900
@@ -155,6 +155,8 @@
     """
     flatparams = util.sortdict()
     def process(prefix, obj):
+        if isinstance(obj, bool):
+            obj = {True: b'true', False: b'false'}[obj]  # Python -> PHP form
         items = {list: enumerate, dict: lambda x: x.items()}.get(type(obj))
         if items is None:
             flatparams[prefix] = obj