in src/main/java/com/googlesource/gerrit/plugins/batch/ssh/MergeChangeCommand.java [207:217]
protected Resolver(Iterable<PatchSetArgument> psargs)
throws Exception, IOException, NoSuchRefException, RepositoryNotFoundException {
add(psargs);
while (resolve()) {}
for (Destination dest : destinationsByBranches.values()) {
if (!dest.remaining.isEmpty()) {
throw new ParentsNotOnBranchException(dest.remaining.get(0));
}
}
Collections.reverse(resolved); // Reduces merges
}