VCS: file name to diff window with "last chance" apply patch result

This commit is contained in:
irengrig
2011-11-17 14:23:39 +04:00
parent 078cf050b5
commit 5a53b64278
@@ -206,7 +206,9 @@ public class ApplyPatchAction extends DumbAwareAction {
final VirtualFile file,
ApplyPatchForBaseRevisionTexts texts,
boolean readonly) {
final SimpleDiffRequest simpleRequest = new SimpleDiffRequest(project, "Result of patch apply");
final SimpleDiffRequest simpleRequest = new SimpleDiffRequest(project, new StringBuilder().append("Result of patch apply to ")
.append(file.getName()).append(" (").append(file.getParent() == null ? file.getPath() : file.getParent().getPath()).append(")")
.toString());
final DocumentImpl patched = new DocumentImpl(texts.getPatched());
patched.setReadOnly(false);