##// END OF EJS Templates
match: fix assertion for fileset with no context (issue6046)...
Yuya Nishihara -
r41144:48124948 stable
parent child Browse files
Show More
@@ -48,7 +48,7 b' def _expandsets(root, cwd, kindpats, ctx'
48
48
49 for kind, pat, source in kindpats:
49 for kind, pat, source in kindpats:
50 if kind == 'set':
50 if kind == 'set':
51 if not ctx:
51 if ctx is None:
52 raise error.ProgrammingError("fileset expression with no "
52 raise error.ProgrammingError("fileset expression with no "
53 "context")
53 "context")
54 matchers.append(ctx.matchfileset(pat, badfn=badfn))
54 matchers.append(ctx.matchfileset(pat, badfn=badfn))
@@ -156,6 +156,11 b' Issue294: hg remove --after dir fails wh'
156 $ hg files .
156 $ hg files .
157 [1]
157 [1]
158
158
159 Fileset at null (i.e. a falsy context) shouldn't crash (issue6046)
160
161 $ hg files -r null 'set:tracked()'
162 [1]
163
159 Convert native path separator to slash (issue5572)
164 Convert native path separator to slash (issue5572)
160
165
161 $ hg files -T '{path|relpath|slashpath}\n'
166 $ hg files -T '{path|relpath|slashpath}\n'
General Comments 0
You need to be logged in to leave comments. Login now