]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add --git option in 'hg diff' (#7253).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Jan 2011 13:53:47 +0000 (13:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Jan 2011 13:53:47 +0000 (13:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4668 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 1045a60e8704d52c2d7964a7e94d1cd279ccec13..e4f694ad4f6b4f1967689eb16f57c58fcf82b111 100644 (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|