Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/phases.py @ 16051:2aa5b51f310f stable 2.1
phases: don't complain if cset is already public on pushkey (issue3230)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 01 Feb 2012 14:17:26 -0600 |
parents | 308406677e9d |
children | bc1d949261c4 |
comparison
equal
deleted
inserted
replaced
16050:aaaa7ebc578b | 16051:2aa5b51f310f |
---|---|
237 newphase = abs(int(newphasestr)) # let's avoid negative index surprise | 237 newphase = abs(int(newphasestr)) # let's avoid negative index surprise |
238 oldphase = abs(int(oldphasestr)) # let's avoid negative index surprise | 238 oldphase = abs(int(oldphasestr)) # let's avoid negative index surprise |
239 if currentphase == oldphase and newphase < oldphase: | 239 if currentphase == oldphase and newphase < oldphase: |
240 advanceboundary(repo, newphase, [bin(nhex)]) | 240 advanceboundary(repo, newphase, [bin(nhex)]) |
241 return 1 | 241 return 1 |
242 elif currentphase == newphase: | |
243 # raced, but got correct result | |
244 return 1 | |
242 else: | 245 else: |
243 return 0 | 246 return 0 |
244 finally: | 247 finally: |
245 lock.release() | 248 lock.release() |
246 | 249 |