mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-133260 Mercurial: Strange behavior when renaming file and adding file with the same name
* ability to add just removed or renamed files added
This commit is contained in:
@@ -101,7 +101,7 @@ public class HgVFSListener extends VcsVFSListener {
|
||||
pi.setText(repo.getPresentableUrl());
|
||||
try {
|
||||
untrackedFiles
|
||||
.addAll(new HgStatusCommand.Builder(false).unknown(true).build(myProject)
|
||||
.addAll(new HgStatusCommand.Builder(false).unknown(true).removed(true).build(myProject)
|
||||
.getHgUntrackedFiles(repo, new ArrayList<VirtualFile>(files)));
|
||||
}
|
||||
catch (final VcsException ex) {
|
||||
|
||||
@@ -78,6 +78,11 @@ public class HgStatusCommand {
|
||||
targetRevision = null;
|
||||
}
|
||||
|
||||
public Builder removed(boolean val) {
|
||||
includeRemoved = val;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder unknown(boolean val) {
|
||||
includeUnknown = val;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user