scm: mercurial: add --git option in 'hg diff' (#7253).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4668 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-01-09 13:53:47 +00:00
parent 08c093bc85
commit 1ff52e5c5a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ module Redmine
else
diff_args = "-c #{hgrev(identifier_from)}"
end
cmd = "#{HG_BIN} -R #{target('')} diff --nodates #{diff_args}"
cmd = "#{HG_BIN} -R #{target('')} diff --nodates --git #{diff_args}"
cmd << " -I #{target(path)}" unless path.empty?
diff = []
shellout(cmd) do |io|