public void testCheckoutLinkAndExec() throws Exception {
File testRepoLoc = cloneRepoToTempLocation("test-flags", "test-checkout-flags", true);
repo = new HgLookup().detect(testRepoLoc);
new HgCheckoutCommand(repo).clean(true).changeset(0).execute();
Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(testRepoLoc), repo.getToRepoPathHelper()));
FileWalker fw = new FileWalker(repo, testRepoLoc, pathSrc, null);
int execFound, linkFound, regularFound;
execFound = linkFound = regularFound = 0;
while(fw.hasNext()) {
fw.next();