##// END OF EJS Templates
mq: use the newcommitphase utility...
Boris Feld -
r34563:c2d2e18f default
parent child Browse files
Show More
@@ -1065,7 +1065,7 b' class queue(object):'
1065 if qfinished and repo.ui.configbool('mq', 'secret'):
1065 if qfinished and repo.ui.configbool('mq', 'secret'):
1066 # only use this logic when the secret option is added
1066 # only use this logic when the secret option is added
1067 oldqbase = repo[qfinished[0]]
1067 oldqbase = repo[qfinished[0]]
1068 tphase = repo.ui.config('phases', 'new-commit', phases.draft)
1068 tphase = phases.newcommitphase(repo.ui)
1069 if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase:
1069 if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase:
1070 with repo.transaction('qfinish') as tr:
1070 with repo.transaction('qfinish') as tr:
1071 phases.advanceboundary(repo, tr, tphase, qfinished)
1071 phases.advanceboundary(repo, tr, tphase, qfinished)
General Comments 0
You need to be logged in to leave comments. Login now