]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: code clean up model.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 12:05:59 +0000 (12:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 12:05:59 +0000 (12:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5406 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/cvs.rb

index 84784359d830c13a99183eb799a4000f43586876..5cec74e5a6949b970ea2ff09e84af39d7708c41b 100644 (file)
@@ -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