Mercurial > evolve
comparison hgext/evolve.py @ 857:c479e24ebddf stable
evolve: use flag value from core for bumped fix
This flag is available from core for a long time, lets use it directly from
there.
This commit intend to cleanup old stuff from the evolve extention.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 19 Feb 2014 18:03:13 -0800 |
parents | 97d8a652f9b9 |
children | 2137f1c153d6 |
comparison
equal
deleted
inserted
replaced
856:1844bb6aed56 | 857:c479e24ebddf |
---|---|
327 | 327 |
328 ##################################################################### | 328 ##################################################################### |
329 ### Complete troubles computation logic ### | 329 ### Complete troubles computation logic ### |
330 ##################################################################### | 330 ##################################################################### |
331 | 331 |
332 | |
333 ### Cache computation | |
334 latediff = 1 # flag to prevent taking late comer fix into account | |
335 | 332 |
336 ### changectx method | 333 ### changectx method |
337 | 334 |
338 @eh.addattr(context.changectx, 'latecomer') | 335 @eh.addattr(context.changectx, 'latecomer') |
339 def latecomer(ctx): | 336 def latecomer(ctx): |
1152 createmarkers(repo, [(tmpctx, ())]) | 1149 createmarkers(repo, [(tmpctx, ())]) |
1153 newid = prec.node() | 1150 newid = prec.node() |
1154 else: | 1151 else: |
1155 phases.retractboundary(repo, bumped.phase(), [newid]) | 1152 phases.retractboundary(repo, bumped.phase(), [newid]) |
1156 createmarkers(repo, [(tmpctx, (repo[newid],))], | 1153 createmarkers(repo, [(tmpctx, (repo[newid],))], |
1157 flag=latediff) | 1154 flag=obsolete.bumpedfix) |
1158 bmupdate(newid) | 1155 bmupdate(newid) |
1159 tr.close() | 1156 tr.close() |
1160 repo.ui.status(_('commited as %s\n') % node.short(newid)) | 1157 repo.ui.status(_('commited as %s\n') % node.short(newid)) |
1161 finally: | 1158 finally: |
1162 tr.release() | 1159 tr.release() |