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

Version Path
ohloh_scm-2.2.13 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.12 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.11 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.10 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.9 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.8 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.7 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.6 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.5 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.4 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.3 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.2 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.1 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.2.0 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.1.0 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.0.1 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.0.0 lib/ohloh_scm/adapters/svn/cat_file.rb