scm: mercurial: add "hgtarget" method (#4455).

Abstract adapter shell quotes paths.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4840 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 01:14:34 +00:00 committed by Eric Davis
parent 3f80b8a9a7
commit 357ddfb112
1 changed files with 6 additions and 0 deletions

View File

@ -251,6 +251,12 @@ module Redmine
rev
end
private :hgrev
def hgtarget(path)
path ||= ''
root_url + '/' + without_leading_slash(path)
end
private :hgtarget
end
end
end