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:
parent
f66b53577f
commit
ee8ae3c09b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue