Mercurial > evolve
comparison hgext/evolve.py @ 858:2137f1c153d6 stable
evolve: drop `latercomer` and `conflicting` compatibility.
Those old alias are deprecated for a long time now. All computations related to
troubles are in Mercurial core for multiple versions.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 19 Feb 2014 18:14:20 -0800 |
parents | c479e24ebddf |
children | b6337585ae25 6a67606e1c34 |
comparison
equal
deleted
inserted
replaced
857:c479e24ebddf | 858:2137f1c153d6 |
---|---|
322 if nb: | 322 if nb: |
323 e = sys.stderr | 323 e = sys.stderr |
324 print >> e, 'repo contains %i invalid obsolescence markers' % nb | 324 print >> e, 'repo contains %i invalid obsolescence markers' % nb |
325 | 325 |
326 getrevs = obsolete.getrevs | 326 getrevs = obsolete.getrevs |
327 | |
328 ##################################################################### | |
329 ### Complete troubles computation logic ### | |
330 ##################################################################### | |
331 | |
332 | |
333 ### changectx method | |
334 | |
335 @eh.addattr(context.changectx, 'latecomer') | |
336 def latecomer(ctx): | |
337 """is the changeset bumped (Try to succeed to public change)""" | |
338 return ctx.bumped() | |
339 | |
340 @eh.addattr(context.changectx, 'conflicting') | |
341 def conflicting(ctx): | |
342 """is the changeset divergent (Try to succeed to public change)""" | |
343 return ctx.divergent() | |
344 | |
345 ### revset symbol | |
346 | |
347 eh.revset('latecomer')(revset.symbols['bumped']) | |
348 eh.revset('conflicting')(revset.symbols['divergent']) | |
349 | |
350 | |
351 | |
352 | 327 |
353 ##################################################################### | 328 ##################################################################### |
354 ### Additional Utilities ### | 329 ### Additional Utilities ### |
355 ##################################################################### | 330 ##################################################################### |
356 | 331 |