]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of app/models/repository/cvs.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Nov 2020 14:45:41 +0000 (14:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Nov 2020 14:45:41 +0000 (14:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20493 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/cvs.rb

index 7863c478b78af81b73f591b9ae119a503acecabd..3b546810ab12154acd5d0f7f133a2703cc94bc9f 100644 (file)
@@ -60,9 +60,11 @@ class Repository::Cvs < Repository
     if entries
       entries.each do |entry|
         if ( ! entry.lastrev.nil? ) && ( ! entry.lastrev.revision.nil? )
-          change = filechanges.where(
-                       :revision => entry.lastrev.revision,
-                       :path => scm.with_leading_slash(entry.path)).first
+          change =
+            filechanges.where(
+              :revision => entry.lastrev.revision,
+              :path => scm.with_leading_slash(entry.path)
+            ).first
           if change
             entry.lastrev.identifier = change.changeset.revision
             entry.lastrev.revision   = change.changeset.revision
@@ -140,17 +142,19 @@ class Repository::Cvs < Repository
         # only add the change to the database, if it doen't exists. the cvs log
         # is not exclusive at all.
         tmp_time = revision.time.clone
-        unless filechanges.find_by_path_and_revision(
-                                scm.with_leading_slash(revision.paths[0][:path]),
-                                revision.paths[0][:revision]
-                             )
+        unless filechanges.
+                 find_by_path_and_revision(
+                   scm.with_leading_slash(revision.paths[0][:path]),
+                   revision.paths[0][:revision]
+                 )
           cmt = Changeset.normalize_comments(revision.message, repo_log_encoding)
           author_utf8 = Changeset.to_utf8(revision.author, repo_log_encoding)
-          cs  = changesets.where(
-                  :committed_on => (tmp_time - time_delta)..(tmp_time + time_delta),
-                  :committer    => author_utf8,
-                  :comments     => cmt
-                ).first
+          cs =
+            changesets.where(
+              :committed_on => (tmp_time - time_delta)..(tmp_time + time_delta),
+              :committer    => author_utf8,
+              :comments     => cmt
+            ).first
           # create a new changeset....
           unless cs
             # we use a temporary revision number here (just for inserting)
@@ -175,12 +179,12 @@ class Repository::Cvs < Repository
             action = "D" # dead-state is similar to Delete
           end
           Change.create(
-             :changeset => cs,
-             :action    => action,
-             :path      => scm.with_leading_slash(revision.paths[0][:path]),
-             :revision  => revision.paths[0][:revision],
-             :branch    => revision.paths[0][:branch]
-              )
+            :changeset => cs,
+            :action    => action,
+            :path      => scm.with_leading_slash(revision.paths[0][:path]),
+            :revision  => revision.paths[0][:revision],
+            :branch    => revision.paths[0][:branch]
+          )
         end
       end