void (@NotNull final Project project, @NotNull final Collection<HgRepository> repos, @Nullable final HgRepository selectedRepo, @NotNull DataContext dataContext) { final HgMergeDialog mergeDialog = new HgMergeDialog(project, repos, selectedRepo); if (mergeDialog.showAndGet()) { final String targetValue = StringUtil.escapeBackSlashes(mergeDialog.getTargetValue()); final HgRepository repo = mergeDialog.getRepository(); HgMergeCommand.mergeWith(repo, targetValue, UpdatedFiles.create()); } }