Created
October 14, 2009 17:38
-
-
Save vitaliel/210244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'svn/info' | |
repo = 'sa_cp33' | |
rev = 19 | |
path = nil | |
for i in 1..6 | |
path = "/var/svn#{i}/#{repo}" | |
if test ?d, path | |
break | |
end | |
end | |
exit 1 unless path | |
info = Svn::Info.new(path, rev) | |
for p, diff in info.diffs | |
puts p | |
for k, v in diff | |
puts v.body | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment