##// END OF EJS Templates
tests: only run check-code on tracked files
Matt Mackall -
r11771:b0e3d397 default
parent child Browse files
Show More
@@ -13,7 +13,11 b' from mercurial import hg, ui'
13 u = ui.ui()
13 u = ui.ui()
14 repo = hg.repository(u, rootdir)
14 repo = hg.repository(u, rootdir)
15 checked = 0
15 checked = 0
16 for f in repo[None]:
16 wctx = repo[None]
17 for f in wctx:
18 # ignore removed and unknown files
19 if f not in wctx:
20 continue
17 checked += 1
21 checked += 1
18 checkcode.checkfile(os.path.join(rootdir, f))
22 checkcode.checkfile(os.path.join(rootdir, f))
19 if not checked:
23 if not checked:
General Comments 0
You need to be logged in to leave comments. Login now