phases: don't complain if cset is already public on pushkey (issue3230) stable 2.1
authorMatt Mackall <mpm@selenic.com>
Wed, 01 Feb 2012 14:17:26 -0600
branchstable
changeset 16051 2aa5b51f310f
parent 16050 aaaa7ebc578b
child 16052 79e37dd6c28f
phases: don't complain if cset is already public on pushkey (issue3230)
mercurial/phases.py
--- a/mercurial/phases.py	Wed Feb 01 17:59:51 2012 -0200
+++ b/mercurial/phases.py	Wed Feb 01 14:17:26 2012 -0600
@@ -239,6 +239,9 @@
         if currentphase == oldphase and newphase < oldphase:
             advanceboundary(repo, newphase, [bin(nhex)])
             return 1
+        elif currentphase == newphase:
+            # raced, but got correct result
+            return 1
         else:
             return 0
     finally: