in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameCommand.java [97:113]
private boolean continueRename(List<Change.Id> changes, ProgressMonitor pm) throws IOException {
if (changes != null && changes.size() > WARNING_LIMIT) {
// close the progress task explicitly this time to get user input
pm.close();
stdout.print(
String.format(
"\nThis project contains %d changes and renaming the project will take longer time.\n"
+ "Do you still want to continue? [y/N]: ",
changes.size()));
stdout.flush();
try (BufferedReader input = new BufferedReader(new InputStreamReader(in))) {
String userInput = input.readLine();
return userInput.toLowerCase().startsWith("y");
}
}
return true;
}