Mercurial > hg
comparison mercurial/debugcommands.py @ 38612:760cc5dc01e8
fileset: restrict getfileset() to not return a computed set (API)
And rename the functions accordingly. fileset.match() will be changed to
not compute the initial subset.
test-glog*.t get back to the state before 9f9ffe5f687c "match: compose
'set:' pattern as matcher."
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jun 2018 20:53:12 +0900 |
parents | 3d8ef60569d8 |
children | 93313f66b69b |
comparison
equal
deleted
inserted
replaced
38611:0ba4cf3f088f | 38612:760cc5dc01e8 |
---|---|
901 files.update(wctx.substate) | 901 files.update(wctx.substate) |
902 else: | 902 else: |
903 files.update(ctx.files()) | 903 files.update(ctx.files()) |
904 files.update(ctx.substate) | 904 files.update(ctx.substate) |
905 | 905 |
906 m = scmutil.matchfiles(repo, ctx.getfileset(expr)) | 906 m = ctx.matchfileset(expr) |
907 for f in sorted(files): | 907 for f in sorted(files): |
908 if not m(f): | 908 if not m(f): |
909 continue | 909 continue |
910 ui.write("%s\n" % f) | 910 ui.write("%s\n" % f) |
911 | 911 |