@@ -70,17 +70,17 class Repository::Cvs < Repository | |||||
70 | end |
|
70 | end | |
71 |
|
71 | |||
72 | def diff(path, rev, rev_to) |
|
72 | def diff(path, rev, rev_to) | |
73 | #convert rev to revision. CVS can't handle changesets here |
|
73 | # convert rev to revision. CVS can't handle changesets here | |
74 | diff=[] |
|
74 | diff=[] | |
75 | changeset_from=changesets.find_by_revision(rev) |
|
75 | changeset_from = changesets.find_by_revision(rev) | |
76 | if rev_to.to_i > 0 |
|
76 | if rev_to.to_i > 0 | |
77 | changeset_to=changesets.find_by_revision(rev_to) |
|
77 | changeset_to = changesets.find_by_revision(rev_to) | |
78 | end |
|
78 | end | |
79 | changeset_from.changes.each() do |change_from| |
|
79 | changeset_from.changes.each() do |change_from| | |
80 | revision_from = nil |
|
80 | revision_from = nil | |
81 | revision_to = nil |
|
81 | revision_to = nil | |
82 | if path.nil? || (change_from.path.starts_with? scm.with_leading_slash(path)) |
|
82 | if path.nil? || (change_from.path.starts_with? scm.with_leading_slash(path)) | |
83 | revision_from=change_from.revision |
|
83 | revision_from = change_from.revision | |
84 | end |
|
84 | end | |
85 | if revision_from |
|
85 | if revision_from | |
86 | if changeset_to |
|
86 | if changeset_to |
General Comments 0
You need to be logged in to leave comments.
Login now