Permalink
Browse files

Merge pull request #141 from mattjmorrison/windows_mercurial

Changed single to double quotes for Windows, fixes a Windows bug in the HG module.
  • Loading branch information...
2 parents c20df28 + 716f8f9 commit 5a8156a4581565e3e99eb7d39aead5ce0db1ba02 @leehambley leehambley committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/capistrano/recipes/deploy/scm/mercurial.rb
  2. +1 −1 test/deploy/scm/mercurial_test.rb
@@ -59,7 +59,7 @@ def query_revision(changeset)
cmd = scm :log,
verbose,
"-r #{changeset}",
- "--template '{node|short}'"
+ '--template "{node|short}"'
yield cmd
end
@@ -39,7 +39,7 @@ def test_log
end
def test_query_revision
- assert_equal "hg log -r 8a8e00b8f11b --template '{node|short}'", @source.query_revision('8a8e00b8f11b') { |o| o }
+ assert_equal "hg log -r 8a8e00b8f11b --template \"{node|short}\"", @source.query_revision('8a8e00b8f11b') { |o| o }
end
def test_username_should_be_backwards_compatible

0 comments on commit 5a8156a

Please sign in to comment.