List<Change> (@NotNull Project project, @NotNull VirtualFile root, @Nullable HgRevisionNumber revNum1, @Nullable HgRevisionNumber revNum2, Collection<HgChange> hgChanges) { List<Change> changes = new ArrayList<>(); //convert output changes to standard Change class for (HgChange hgChange : hgChanges) { FileStatus status = convertHgDiffStatus(hgChange.getStatus()); if (status != FileStatus.UNKNOWN) { changes.add(HgHistoryUtil.createChange(project, root, hgChange.beforeFile().getRelativePath(), revNum1, hgChange.afterFile().getRelativePath(), revNum2, status)); } } return changes; }