mercurial/phases.py
changeset 32841 e65ff29dbeb0
parent 32000 511a62669f1b
child 33043 e8c8d81eb864
--- a/mercurial/phases.py	Fri Apr 10 00:14:16 2015 +0900
+++ b/mercurial/phases.py	Mon Jun 12 16:35:57 2017 -0700
@@ -423,12 +423,12 @@
         if currentphase == oldphase and newphase < oldphase:
             with repo.transaction('pushkey-phase') as tr:
                 advanceboundary(repo, tr, newphase, [bin(nhex)])
-            return 1
+            return True
         elif currentphase == newphase:
             # raced, but got correct result
-            return 1
+            return True
         else:
-            return 0
+            return False
 
 def analyzeremotephases(repo, subset, roots):
     """Compute phases heads and root in a subset of node from root dict