Sha256: f902e20c6a9508290200915f74cca62d95f8762c00f268fc8ebdf54b2e14ab4f
Contents?: true
Size: 561 Bytes
Versions: 37
Compression:
Stored size: 561 Bytes
Contents
module OhlohScm::Adapters class SvnAdapter < AbstractAdapter def cat_file(commit, diff) cat(diff.path, commit.token) end def cat_file_parent(commit, diff) cat(diff.path, commit.token.to_i-1) end def cat(path, revision) begin run "svn cat --trust-server-cert --non-interactive -r #{revision} '#{SvnAdapter.uri_encode(File.join(self.root, self.branch_name.to_s, path.to_s))}@#{revision}'" rescue raise unless $!.message =~ /svn:.*Could not cat all targets because some targets (don't exist|are directories)/ end end end end
Version data entries
37 entries across 37 versions & 1 rubygems