Show More
@@ -48,7 +48,7 b' def _expandsets(root, cwd, kindpats, ctx' | |||
|
48 | 48 | |
|
49 | 49 | for kind, pat, source in kindpats: |
|
50 | 50 | if kind == 'set': |
|
51 |
if |
|
|
51 | if ctx is None: | |
|
52 | 52 | raise error.ProgrammingError("fileset expression with no " |
|
53 | 53 | "context") |
|
54 | 54 | matchers.append(ctx.matchfileset(pat, badfn=badfn)) |
@@ -156,6 +156,11 b' Issue294: hg remove --after dir fails wh' | |||
|
156 | 156 | $ hg files . |
|
157 | 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 | 164 | Convert native path separator to slash (issue5572) |
|
160 | 165 | |
|
161 | 166 | $ hg files -T '{path|relpath|slashpath}\n' |
General Comments 0
You need to be logged in to leave comments.
Login now