[vcs-log] when there are commits with both \u0001 and \u0003 symbols, try no to fail completely, but rather return commits that were loaded IDEA-156249

This commit is contained in:
Julia Beliaeva
2017-02-13 19:05:18 +03:00
parent 1c5087dbbe
commit fc75e73c74
@@ -835,7 +835,15 @@ public class GitHistoryUtils {
List<T> commits = ContainerUtil.newArrayList();
loadDetails(project, root, withRefs, withChanges, record -> commits.add(converter.fun(record)), parameters);
try {
loadDetails(project, root, withRefs, withChanges, record -> commits.add(converter.fun(record)), parameters);
}
catch (VcsException e) {
if (commits.isEmpty()) {
throw e;
}
LOG.warn("Error during loading details, returning partially loaded commits\n", e);
}
return commits;
}