mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
vcs: avoid "(revision )" when creating patches
This commit is contained in:
@@ -23,6 +23,7 @@ import com.intellij.diff.util.Range;
|
||||
import com.intellij.openapi.progress.DumbProgressIndicator;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.text.LineTokenizer;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.vcs.VcsException;
|
||||
import com.intellij.util.BeforeAfter;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
@@ -362,7 +363,7 @@ public class TextPatchBuilder {
|
||||
@NotNull
|
||||
private static String getRevisionName(@NotNull AirContentRevision revision) {
|
||||
String revisionName = revision.getRevisionNumber();
|
||||
if (revisionName != null) {
|
||||
if (!StringUtil.isEmptyOrSpaces(revisionName)) {
|
||||
return MessageFormat.format(REVISION_NAME_TEMPLATE, revisionName);
|
||||
}
|
||||
return MessageFormat.format(DATE_NAME_TEMPLATE, Long.toString(revision.getPath().lastModified()));
|
||||
|
||||
Reference in New Issue
Block a user