Module: Subversion::SvnCommand::ViewCommits
- Defined in:
- lib/svn-command/svn_command.rb
Overview
Experimental
Combine commit messages / diffs for the given range for the given files. Gives one aggregate diff for the range instead of many individual diffs.
Could be useful for code reviews?
Pass in a list of revisions/revision ranges (“134”, “134:136”, “134-136”, and “134-136 139” are all valid)
Instance Method Summary collapse
Instance Method Details
#_r(*revisions) ⇒ Object
866 867 868 869 870 871 872 873 |
# File 'lib/svn-command/svn_command.rb', line 866 def _r(*revisions) # This is necessary so that the -r option doesn't accidentally eat up an arg that wasn't meant to be a revision (a filename, for instance). The only problem with this is if there's actully a filename that matches these patterns! (But then we could just re-order ars.) revisions.select! do |revision| revision =~ /\d+|\d+:\d+/ end @revisions = revisions @revisions.size end |