mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
short diff: correctly process situation when file status is deleted but it exists (svn tree unversioned vs incoming add conflict)
This commit is contained in:
+2
-1
@@ -117,7 +117,8 @@ public class FragmentedDiffRequestFromChange {
|
||||
myOldDocument = documentFromRevision(change.getBeforeRevision());
|
||||
final String convertedPath = FilePathsHelper.convertPath(filePath);
|
||||
if (filePath.getVirtualFile() != null) {
|
||||
myDocument = FileDocumentManager.getInstance().getDocument(filePath.getVirtualFile());
|
||||
myDocument = FileStatus.DELETED.equals(change.getFileStatus()) ? new DocumentImpl("") :
|
||||
FileDocumentManager.getInstance().getDocument(filePath.getVirtualFile());
|
||||
if (myDocument != null) {
|
||||
final List<BeforeAfter<TextRange>> cached = cache.get(new Pair<Long, String>(myDocument.getModificationStamp(), convertedPath));
|
||||
if (cached != null) {
|
||||
|
||||
Reference in New Issue
Block a user