| Class | URI::Svn |
| In: |
lib/uri/svn.rb
|
| Parent: | GenericEx |
| COMPONENT | = | [ :scheme, :host, :path |
# File lib/uri/svn.rb, line 32 def checkout tmp = TempPath.new('svn-checkout') tmp.mkpath tmp += pathname.basename [tmp, shell.svn!('checkout', svn_uri_string, tmp)] end
# File lib/uri/svn.rb, line 26 def fingerprint shell(:raise). svn!('info', svn_uri_string). output.read[/Revision: (\d+)/, 1] end
# File lib/uri/svn.rb, line 39 def save raise SaveError unless scheme.downcase == 'svn.file' repos = pathname raise SaveError unless (repos + 'format').exist? out = TempPath.new('save', "#{repos.basename}.svndump") data = shell! do svnadmin('dump', repos, '--incremental', '--quiet', '--deltas') > out end [out, data] end