[hg]: IDEA-158778 Switching Tasks fails to switch branch (for some specific hg versions on windows)

This commit is contained in:
Nadya Zabrodina
2016-07-22 14:40:38 +03:00
parent 8bb1035db2
commit be3658f98a
@@ -54,7 +54,7 @@ public class HgTaskHandler extends DvcsTaskHandler<HgRepository> {
@Override
protected void checkout(@NotNull String taskName, @NotNull List<HgRepository> repos, @Nullable Runnable callInAwtLater) {
HgUpdateCommand.updateTo(
!HgBranchUtil.getCommonBookmarks(repos).contains(taskName) ? "head() and not bookmark() and branch(" + taskName + ")" : taskName,
!HgBranchUtil.getCommonBookmarks(repos).contains(taskName) ? "head() and not bookmark() and branch(\"" + taskName + "\")" : taskName,
repos, callInAwtLater);
}