mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[file-history] always push path for a commit into the stack, even if it was not renamed
It ensures consistency between paths stack and nodes stack.
This commit is contained in:
@@ -171,7 +171,7 @@ class FileHistoryFilterer extends VcsLogFilterer {
|
||||
FilePath previousPath = myNamesData.getPreviousPath(commit, currentPath);
|
||||
if (previousPath != null) {
|
||||
myMatchingCommits.add(commit);
|
||||
if (!currentPath.equals(previousPath)) myPaths.push(previousPath);
|
||||
myPaths.push(previousPath);
|
||||
myNamesData.retain(commit, currentPath, previousPath);
|
||||
}
|
||||
else {
|
||||
@@ -184,7 +184,7 @@ class FileHistoryFilterer extends VcsLogFilterer {
|
||||
public void exitNode(int node) {
|
||||
Integer commit = myVisibleGraph.getRowInfo(node).getCommit();
|
||||
if (myMatchingCommits.contains(commit)) {
|
||||
if (myNamesData.getRenamedPath(commit, myPaths.peek()) != null) myPaths.pop();
|
||||
myPaths.pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user