Defect #5236 » subversion_adapter.rb.patch
| subversion_adapter.rb 2010-04-06 17:41:31.933377253 +0200 | ||
|---|---|---|
|
def info
|
||
|
cmd = "#{SVN_BIN} info --xml #{target('')}"
|
||
|
cmd << credentials_string
|
||
|
|
||
|
req_project_id= Repository.find_by_url(url).project_id
|
||
|
req_user_id= User.current.id
|
||
|
req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
|
||
|
if not Project.find(req_project_id).is_public and req_result.length == 0
|
||
|
return nil
|
||
|
end
|
||
|
|
||
|
info = nil
|
||
|
shellout(cmd) do |io|
|
||
|
begin
|
||
| ... | ... | |
|
entries = Entries.new
|
||
|
cmd = "#{SVN_BIN} list --xml #{target(URI.escape(path))}@#{identifier}"
|
||
|
cmd << credentials_string
|
||
|
|
||
|
req_project_id= Repository.find_by_url(url).project_id
|
||
|
req_user_id= User.current.id
|
||
|
req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
|
||
|
if not Project.find(req_project_id).is_public and req_result.length == 0
|
||
|
return nil
|
||
|
end
|
||
|
shellout(cmd) do |io|
|
||
|
output = io.read
|
||
|
begin
|
||
| ... | ... | |
|
str = ''
|
||
|
str << " --username #{shell_quote(@login)}" unless @login.blank?
|
||
|
str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank?
|
||
|
str << " --no-auth-cache --non-interactive"
|
||
|
str << " --no-auth-cache --non-interactive --trust-server-cert "
|
||
|
str
|
||
|
end
|
||
|
end
|
||
- « Previous
- 1
- 2
- Next »