Project

General

Profile

Patch #7086 ยป subversion_adapter.diff

Dmitry Salashnik, 2010-12-09 11:11

View differences:

subversion_adapter.rb (working copy)
commit_date = commit['date']
# Skip directory if there is no commit date (usually that
# means that we don't have read access to it)
next if entry['kind'] == 'dir' && commit_date.nil?
# next if entry['kind'] == 'dir' && commit_date.nil?
next if commit_date.nil?
name = entry['name']['__content__']
entries << Entry.new({:name => URI.unescape(name),
:path => ((path.empty? ? "" : "#{path}/") + name),
......
revisions << Revision.new({:identifier => logentry['revision'],
:author => (logentry['author'] ? logentry['author']['__content__'] : ""),
:time => Time.parse(logentry['date']['__content__'].to_s).localtime,
:message => logentry['msg']['__content__'],
:message => (logentry['msg'] ? logentry['msg']['__content__'] : ""),
:paths => paths
})
end
rescue
rescue Exception => e
logger.error "ERROR: #{ e.message}"
end
end
return nil if $? && $?.exitstatus != 0
......
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
    (1-1/1)