comparison mercurial/revset.py @ 20481:a5d7081a4c34

revset: added lazyset implementation to extra revset
author Lucas Moscovicz <lmoscovicz@fb.com>
date Thu, 06 Feb 2014 08:36:11 -0800
parents ada89e5b5b0c
children a979078bd788
comparison
equal deleted inserted replaced
20480:ada89e5b5b0c 20481:a5d7081a4c34
706 706
707 def _matchvalue(r): 707 def _matchvalue(r):
708 extra = repo[r].extra() 708 extra = repo[r].extra()
709 return label in extra and (value is None or matcher(extra[label])) 709 return label in extra and (value is None or matcher(extra[label]))
710 710
711 return baseset([r for r in subset if _matchvalue(r)]) 711 return lazyset(subset, lambda r: _matchvalue(r))
712 712
713 def filelog(repo, subset, x): 713 def filelog(repo, subset, x):
714 """``filelog(pattern)`` 714 """``filelog(pattern)``
715 Changesets connected to the specified filelog. 715 Changesets connected to the specified filelog.
716 716