comparison hgext/evolve.py @ 1068:9f87b103f7b5

evolve: drop debugobsoleterelevant Core gained this capability usig `hg debugobsolete --rev REV`
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 27 Aug 2014 10:29:31 +0200
parents 5d063fed9e3d
children 356552e55489
comparison
equal deleted inserted replaced
1067:5d063fed9e3d 1068:9f87b103f7b5
436 pendingnodes = set([m[0] for m in direct]) 436 pendingnodes = set([m[0] for m in direct])
437 seenmarkers |= direct 437 seenmarkers |= direct
438 pendingnodes -= seennodes 438 pendingnodes -= seennodes
439 seennodes |= pendingnodes 439 seennodes |= pendingnodes
440 return seenmarkers 440 return seenmarkers
441
442 @command('debugobsoleterelevant',
443 [],
444 'REVSET')
445 def debugobsoleterelevant(ui, repo, *revsets):
446 """print allobsolescence marker relevant to a set of revision"""
447 nodes = [ctx.node() for ctx in repo.set('%lr', revsets)]
448 markers = repo.obsstore.relevantmarkers(nodes)
449 for rawmarker in sorted(markers):
450 marker = obsolete.marker(repo, rawmarker)
451 cmdutil.showmarker(ui, marker)
452
453 441
454 ##################################################################### 442 #####################################################################
455 ### Critical fix ### 443 ### Critical fix ###
456 ##################################################################### 444 #####################################################################
457 445