From 4bf5c42b2bfc2fc424dfdda5f2ea4ef2fc2df657 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 11 Apr 2011 12:05:59 +0000 Subject: [PATCH] scm: cvs: code clean up model. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5406 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/cvs.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index 84784359d..5cec74e5a 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -70,17 +70,17 @@ class Repository::Cvs < Repository end def diff(path, rev, rev_to) - #convert rev to revision. CVS can't handle changesets here + # convert rev to revision. CVS can't handle changesets here diff=[] - changeset_from=changesets.find_by_revision(rev) + changeset_from = changesets.find_by_revision(rev) if rev_to.to_i > 0 - changeset_to=changesets.find_by_revision(rev_to) + changeset_to = changesets.find_by_revision(rev_to) end changeset_from.changes.each() do |change_from| revision_from = nil revision_to = nil if path.nil? || (change_from.path.starts_with? scm.with_leading_slash(path)) - revision_from=change_from.revision + revision_from = change_from.revision end if revision_from if changeset_to -- 2.39.5