Load precompiled prolog rules from jar file
Looks in (site)/cache/rules for a jar file called: rules-(sha1 of rules.pl).jar Loads the precompiled prolog rules and uses them instead of consulting rules.pl. If the jar does not exist, consults rules.pl. If rules.pl does not exist, uses the default submit rules. Change-Id: Iae415de08dbe249eff26b753d258fd7f79a8771f
This commit is contained in:
committed by
Shawn O. Pearce
parent
76409cf7fa
commit
4efeb4fc64
@@ -264,6 +264,19 @@ public abstract class VersionedMetaData {
|
||||
}
|
||||
}
|
||||
|
||||
protected ObjectId getObjectId(String fileName) throws IOException {
|
||||
if (revision == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
TreeWalk tw = TreeWalk.forPath(reader, fileName, revision.getTree());
|
||||
if (tw != null) {
|
||||
return tw.getObjectId(0);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
protected static void set(Config rc, String section, String subsection,
|
||||
String name, String value) {
|
||||
if (value != null) {
|
||||
|
||||
Reference in New Issue
Block a user