From: Toshi MARUYAMA Date: Sun, 9 Jan 2011 09:54:10 +0000 (+0000) Subject: scm: mercurial: wrap identifier with shell_quote at hgrev(identifier). X-Git-Tag: 1.2.0~1112 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed246cef41b14fd3e8c15e6fafcef284c9ae9dd7;p=redmine.git scm: mercurial: wrap identifier with shell_quote at hgrev(identifier). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4666 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index a493a94ee..9657e7ad4 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -212,7 +212,7 @@ module Redmine # Returns correct revision identifier def hgrev(identifier) - identifier.blank? ? 'tip' : identifier.to_s + shell_quote(identifier.blank? ? 'tip' : identifier.to_s) end private :hgrev end