diff -r 9b7d615108d7 -r e65ff29dbeb0 mercurial/phases.py --- 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