From bf032661f75755ef29ab2125633a30c7c719b398 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 11 Mar 2011 00:43:24 +0000 Subject: [PATCH] scm: cvs: code clean up model. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5084 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/cvs.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index 2ee82a740..b4fcfd65c 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -49,12 +49,14 @@ class Repository::Cvs < Repository if entries entries.each() do |entry| unless entry.lastrev.nil? || entry.lastrev.identifier - change=changes.find_by_revision_and_path( entry.lastrev.revision, scm.with_leading_slash(entry.path) ) + change=changes.find_by_revision_and_path( + entry.lastrev.revision, + scm.with_leading_slash(entry.path) ) if change - entry.lastrev.identifier=change.changeset.revision - entry.lastrev.author=change.changeset.committer - entry.lastrev.revision=change.revision - entry.lastrev.branch=change.branch + entry.lastrev.identifier = change.changeset.revision + entry.lastrev.author = change.changeset.committer + entry.lastrev.revision = change.revision + entry.lastrev.branch = change.branch end end end