##// END OF EJS Templates
match: resolve 'set:' patterns first in _buildmatch()...
Yuya Nishihara -
r38598:ec0cee4c default
parent child Browse files
Show More
@@ -828,6 +828,10 b' def _buildmatch(ctx, kindpats, globsuffi'
828 globsuffix is appended to the regexp of globs.'''
828 globsuffix is appended to the regexp of globs.'''
829 matchfuncs = []
829 matchfuncs = []
830
830
831 fset, kindpats = _expandsets(kindpats, ctx, listsubrepos)
832 if fset:
833 matchfuncs.append(fset.__contains__)
834
831 subincludes, kindpats = _expandsubinclude(kindpats, root)
835 subincludes, kindpats = _expandsubinclude(kindpats, root)
832 if subincludes:
836 if subincludes:
833 submatchers = {}
837 submatchers = {}
@@ -844,10 +848,6 b' def _buildmatch(ctx, kindpats, globsuffi'
844 return False
848 return False
845 matchfuncs.append(matchsubinclude)
849 matchfuncs.append(matchsubinclude)
846
850
847 fset, kindpats = _expandsets(kindpats, ctx, listsubrepos)
848 if fset:
849 matchfuncs.append(fset.__contains__)
850
851 regex = ''
851 regex = ''
852 if kindpats:
852 if kindpats:
853 regex, mf = _buildregexmatch(kindpats, globsuffix)
853 regex, mf = _buildregexmatch(kindpats, globsuffix)
General Comments 0
You need to be logged in to leave comments. Login now