Show More
@@ -409,12 +409,8 b' def pushphase(repo, nhex, oldphasestr, n' | |||
|
409 | 409 | newphase = abs(int(newphasestr)) # let's avoid negative index surprise |
|
410 | 410 | oldphase = abs(int(oldphasestr)) # let's avoid negative index surprise |
|
411 | 411 | if currentphase == oldphase and newphase < oldphase: |
|
412 | try: | |
|
413 | tr = repo.transaction('pushkey-phase') | |
|
412 | with repo.transaction('pushkey-phase') as tr: | |
|
414 | 413 | advanceboundary(repo, tr, newphase, [bin(nhex)]) |
|
415 | tr.close() | |
|
416 | finally: | |
|
417 | tr.release() | |
|
418 | 414 | return 1 |
|
419 | 415 | elif currentphase == newphase: |
|
420 | 416 | # raced, but got correct result |
General Comments 0
You need to be logged in to leave comments.
Login now