Move unified diff parser out of the scm abstract adapter so it can be reused for viewing attached diffs (#1403).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1513 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2008-06-08 16:28:42 +00:00
1 parent 731d15fe9b
commit ec0525d497
13 files changed
+198 -179

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ class Repository::Cvs < Repository
entries
end
def diff(path, rev, rev_to, type)
def diff(path, rev, rev_to)
#convert rev to revision. CVS can't handle changesets here
diff=[]
changeset_from=changesets.find_by_revision(rev)
@@ -76,7 +76,7 @@ class Repository::Cvs < Repository
unless revision_to
revision_to=scm.get_previous_revision(revision_from)
end
diff=diff+scm.diff(change_from.path, revision_from, revision_to, type)
diff=diff+scm.diff(change_from.path, revision_from, revision_to)
end
end
return diff