comparison mercurial/scmutil.py @ 24114:fafd9a1284cf

revset: make match function initiate query from full set by default This change is intended to avoid exposing the implementation detail to callers. I'm going to extend fullreposet to support "null" revision, so these mfunc calls will have to use fullreposet() instead of spanset().
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 Feb 2015 22:21:07 +0900
parents 164915e8ef7b
children c4e3e7b031b7
comparison
equal deleted inserted replaced
24113:b08af8f0ac01 24114:fafd9a1284cf
670 pass 670 pass
671 671
672 # fall through to new-style queries if old-style fails 672 # fall through to new-style queries if old-style fails
673 m = revset.match(repo.ui, spec, repo) 673 m = revset.match(repo.ui, spec, repo)
674 if seen or l: 674 if seen or l:
675 dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] 675 dl = [r for r in m(repo) if r not in seen]
676 l = l + revset.baseset(dl) 676 l = l + revset.baseset(dl)
677 seen.update(dl) 677 seen.update(dl)
678 else: 678 else:
679 l = m(repo, revset.spanset(repo)) 679 l = m(repo)
680 680
681 return l 681 return l
682 682
683 def expandpats(pats): 683 def expandpats(pats):
684 '''Expand bare globs when running on windows. 684 '''Expand bare globs when running on windows.