Download:
child 16:784e5bd0fcba
parent 14:9cebce155650
15:fa08a5f4efd3
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 01:44:31 +0800
checker: just use hg files <fileset>

1 файлов изменено, 1 вставок(+), 4 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Tue Jun 14 13:51:47 2016 +0800
+++ b/checker.py Wed Jun 15 01:44:31 2016 +0800
@@ -96,10 +96,7 @@
if 'cmd' not in linter or 'files' not in linter:
continue
- args = []
- for fpat in linter['files']:
- args.extend(['-I', fpat])
- cmd = ['hg', 'files'] + args
+ cmd = ['hg', 'files', 'set:' + ' or '.join(linter['files'])]
files = run(cmd, silent=True, get_output=True, ignore_1=True)
if files is False:
ok = False