[vcs] more correct commit successful notification: "changes" -> "files"

This commit is contained in:
Kirill Likhodedov
2014-02-06 12:03:41 +04:00
parent fc2b716f67
commit 6b6f14ba0c
@@ -188,9 +188,9 @@ public class CommitHelper {
int failed = changesFailedToCommit.size();
int committed = myIncludedChanges.size() - failed;
String text = committed + " " + StringUtil.pluralize("change", committed) + " committed";
String text = committed + " " + StringUtil.pluralize("file", committed) + " committed";
if (failed > 0) {
text += ", " + failed + " " + StringUtil.pluralize("change", failed) + " failed to commit";
text += ", " + failed + " " + StringUtil.pluralize("file", failed) + " failed to commit";
}
StringBuilder content = new StringBuilder(StringUtil.isEmpty(myCommitMessage) ? text : text + ": " + escape(myCommitMessage));
for (String s : myFeedback) {