Method: Capistrano::Deploy::SCM::Cvs#diff
- Defined in:
- lib/capistrano/recipes/deploy/scm/cvs.rb
#diff(from, to = nil) ⇒ Object
Returns the command that will do an “cvs diff” for the two revisions.
45 46 47 48 49 50 51 52 53 |
# File 'lib/capistrano/recipes/deploy/scm/cvs.rb', line 45 def diff(from, to=nil) rev_type = revision_type(from) if rev_type == :date range_args = "-D '#{from}' -D '#{to || 'now'}'" else range_args = "-r '#{from}' -r '#{to || head}'" end scm cvs_root, :diff, range_args end |