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
3f80b8a9a7
commit
357ddfb112
|
@ -251,6 +251,12 @@ module Redmine
|
||||||
rev
|
rev
|
||||||
end
|
end
|
||||||
private :hgrev
|
private :hgrev
|
||||||
|
|
||||||
|
def hgtarget(path)
|
||||||
|
path ||= ''
|
||||||
|
root_url + '/' + without_leading_slash(path)
|
||||||
|
end
|
||||||
|
private :hgtarget
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue