##// END OF EJS Templates
revset: add tagged predicate
Matt Mackall -
r11280:a5eb0bf7 default
parent child Browse files
Show More
@@ -424,6 +424,11 b' def outgoing(repo, subset, x):'
424 print 'out', dest, o
424 print 'out', dest, o
425 return [r for r in subset if r in o]
425 return [r for r in subset if r in o]
426
426
427 def tagged(repo, subset, x):
428 cl = repo.changelog
429 s = set([cl.rev(n) for t, n in repo.tagslist() if t != 'tip'])
430 return [r for r in subset if r in s]
431
427 symbols = {
432 symbols = {
428 "ancestor": ancestor,
433 "ancestor": ancestor,
429 "ancestors": ancestors,
434 "ancestors": ancestors,
@@ -455,6 +460,7 b' symbols = {'
455 "adds": adds,
460 "adds": adds,
456 "removes": removes,
461 "removes": removes,
457 "outgoing": outgoing,
462 "outgoing": outgoing,
463 "tagged": tagged,
458 }
464 }
459
465
460 methods = {
466 methods = {
General Comments 0
You need to be logged in to leave comments. Login now