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.5.1 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.14 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.13 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.12 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.11 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.10 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.9 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.8 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.7 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.6 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.5 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.4 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.3 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.1 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.4.0 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.3.5 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.3.4 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.3.2 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.3.1 lib/ohloh_scm/adapters/svn/cat_file.rb
ohloh_scm-2.3.0 lib/ohloh_scm/adapters/svn/cat_file.rb