in xmlschema-core/maint/DoMerges.java [47:82]
static void doCommit() throws Exception {
while (System.in.available() > 0) {
System.in.read();
}
char c = auto ? 'Y' : 0;
while (c != 'Y'
&& c != 'N') {
System.out.print("Commit: [Y]es, or [N]o? ");
int i = System.in.read();
c = Character.toUpperCase((char)i);
}
if (c == 'N') {
return;
}
Process p = Runtime.getRuntime().exec(new String[] {"svn", "resolved", "."});
if (p.waitFor() != 0) {
Thread.sleep(10);
}
p = Runtime.getRuntime().exec(new String[] {"svn", "commit", "-F", "svnmerge-commit-message.txt"});
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = reader.readLine();
while (line != null) {
System.out.println(line);
line = reader.readLine();
}
if (p.waitFor() != 0) {
System.out.println("ERROR!");
reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
line = reader.readLine();
while (line != null) {
System.out.println(line);
line = reader.readLine();
}
System.exit(1);
}
}