mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
IDEA-134344 Incorrect conflict resolving while grafting
* conflict info should be updated if only continue grafting and warn in other cases
This commit is contained in:
@@ -46,7 +46,6 @@ public class HgCherryPicker extends VcsCherryPicker {
|
||||
myProject = project;
|
||||
}
|
||||
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public VcsKey getSupportedVcs() {
|
||||
@@ -76,7 +75,6 @@ public class HgCherryPicker extends VcsCherryPicker {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static void processGrafting(@NotNull HgRepository repository, @NotNull List<String> hashes) {
|
||||
Project project = repository.getProject();
|
||||
VirtualFile root = repository.getRoot();
|
||||
@@ -87,15 +85,15 @@ public class HgCherryPicker extends VcsCherryPicker {
|
||||
new HgCommandResultNotifier(project).notifyError(result, "Hg Error", "Couldn't graft.");
|
||||
return;
|
||||
}
|
||||
final UpdatedFiles updatedFiles = UpdatedFiles.create();
|
||||
while (hasConflicts) {
|
||||
final UpdatedFiles updatedFiles = UpdatedFiles.create();
|
||||
new HgConflictResolver(project, updatedFiles).resolve(root);
|
||||
hasConflicts = !HgConflictResolver.findConflicts(project, root).isEmpty();
|
||||
if (!hasConflicts) {
|
||||
result = command.continueGrafting();
|
||||
hasConflicts = !HgConflictResolver.findConflicts(project, root).isEmpty();
|
||||
}
|
||||
hasConflicts = !HgConflictResolver.findConflicts(project, root).isEmpty();
|
||||
if (hasConflicts) {
|
||||
else {
|
||||
new HgCommandResultNotifier(project).notifyError(result, "Hg Error", "Couldn't continue grafting");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user