lib/pvn/diff/log_path.rb
# the "path" parameter is the displayed name; "logpath" is the LogPath.
# These are in the process of being refactored.
the "path" parameter is the displayed name; "logpath" is the LogPath.
These are in the process of being refactored.
the " path " parameter is the displayed name ; " logpath " is the LogPath . These are in the process of being refactored .
def diff_revision_to_working_copy revision, whitespace
      fromrev = revision.from.value.to_i
      change = revisions_later_than(fromrev).first
      info "change: #{change}".color(:red)
      diffrev = get_diff_revision change, revision
      displaypath = get_display_path
      pn = Pathname.new displaypath
      info "url: #{url}"
      info "name: #{name}"
      svnpath = url + name
      info "svnpath: #{svnpath}"
      elmt = PVN::IO::Element.new :svn => svnpath
      if change.action.added?
        show_as_added elmt, displaypath, revision, whitespace
      else
        fromlines = elmt.cat diffrev
        info "fromlines.size: #{fromlines.size}"
        tolines = pn.readlines
        info "tolines.size: #{tolines.size}"
        run_diff displaypath, fromlines, diffrev, tolines, nil, whitespace
      end
    end
def diff_revision_to_working_copy revision , whitespace fromrev = revision . from . value . to_i change = revisions_later_than ( fromrev ) . first info "change: #{change}" . color ( :red ) diffrev = get_diff_revision change , revision displaypath = get_display_path pn = Pathname . new displaypath info "url: #{url}" info "name: #{name}" svnpath = url + name info "svnpath: #{svnpath}" elmt = PVN :: IO :: Element . new :svn => svnpath if change . action . added? show_as_added elmt , displaypath , revision , whitespace else fromlines = elmt . cat diffrev info "fromlines.size: #{fromlines.size}" tolines = pn . readlines info "tolines.size: #{tolines.size}" run_diff displaypath , fromlines , diffrev , tolines , nil , whitespace end end
the "path" parameter is the displayed name; "logpath" is the LogPath.
the " path " parameter is the displayed name ; " logpath " is the LogPath .
### $$$ this doesn't handle the case where a file has been added, then ### modified. # revision should be a class here, not a primitive # pp fromlines # pp tolines
revision
<not_specific>
whitespace
<not_specific>