IDEA-67921 IDEA-65888 Mercurial installed via easy_install/pip on Windows.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Wed, 13 Apr 2011 15:31:27 +0000 (19:31 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Thu, 14 Apr 2011 06:52:02 +0000 (10:52 +0400)
commit636f5cf38c859fb079da854f27cfe4ca553b2de7
tree2b4c4e1eb46c5b820176e2221131083ffbeb94b1
parentda3c058a190f183066840ca55c0a74645c128310
IDEA-67921 IDEA-65888 Mercurial installed via easy_install/pip on Windows.

Root cause: the pipe symbol (|) used in changesets templates (--template) is interpreted by system in the case of such configuration and running via hg.bat).

If Windows, surround the template by double-quotes.
It breaks UNIX version, however, so don't do it for UNIX.

Refactored all usages of --template to go through HgChangesetUtil.makeTemplate() using common separators and quoting if needed.
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgChangesetsCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgRevisionsCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgTrackFileNamesAccrossRevisionsCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgWorkingCopyRevisionsCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/util/HgChangesetUtil.java [new file with mode: 0644]