Fixed: unexpected nil when viewing differences on CVS (#1444).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1525 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cc9b8f7878
commit
b42b697ffb
|
@ -76,7 +76,8 @@ class Repository::Cvs < Repository
|
||||||
unless revision_to
|
unless revision_to
|
||||||
revision_to=scm.get_previous_revision(revision_from)
|
revision_to=scm.get_previous_revision(revision_from)
|
||||||
end
|
end
|
||||||
diff=diff+scm.diff(change_from.path, revision_from, revision_to)
|
file_diff = scm.diff(change_from.path, revision_from, revision_to)
|
||||||
|
diff = diff + file_diff unless file_diff.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return diff
|
return diff
|
||||||
|
|
Loading…
Reference in New Issue