in src/main/java/com/googlesource/gerrit/plugins/findowners/Parser.java [262:282]
void append(Result r, String dir, boolean addAll) {
// addAll is true when the Result is from an include statements.
// It is false for the included result of "file:" directive, which
// only collects owner emails, not per-file or set noparent statement.
warnings.addAll(r.warnings);
errors.addAll(r.errors);
if (addAll) {
stopLooking = stopLooking || r.stopLooking;
for (String glob : r.noParentGlobs) {
noParentGlobs.add(dir + glob);
}
}
for (String key : r.owner2paths.keySet()) {
for (String path : r.owner2paths.get(key)) {
// In an included file, top-level owener emails have empty dir path.
if (path.isEmpty() || addAll) {
Util.addToMap(owner2paths, key, dir + path);
}
}
}
}