}
public RepoInitializer initRequiresFromFile(File repoDir) throws HgInvalidControlFileException {
File requiresFile = new File(repoDir, "requires"); // not #getFileFromRepoDir() just in case it gets modified later
try {
int flags = new RequiresFile().parse(requiresFile);
return setRequires(flags);
} catch (IOException ex) {
throw new HgInvalidControlFileException("Parse failed", ex, requiresFile);
}
}