Skip to content

Commit 343de8f

Browse files
committed
Use double quotes for hg log command on Windows.
1 parent dda0a67 commit 343de8f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
0.42:
22
* Fixed bzr log command when no start date was specified (chrisf).
33
* Fixed hg log commit order when date range specified.
4+
* Fixed hg log command line on Windows.
45
* Fixed parser bug in date range filtering code.
56

67
0.41:

src/formats/hg.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ std::string MercurialLog::logCommand() {
4646

4747
std::string log_command = str(boost::format("hg log %s -r 0:tip --style '%s'") % range % gource_style_path);
4848

49+
#ifdef _WIN32
50+
std::replace(log_command.begin(), log_command.end(), '\'', '"');
51+
#endif
52+
4953
return log_command;
5054
}
5155

0 commit comments

Comments
 (0)