diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 12:05:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 12:05:59 +0000 |
commit | 4bf5c42b2bfc2fc424dfdda5f2ea4ef2fc2df657 (patch) | |
tree | b49414d61e966d4440d68a7e26a446c7eab94dbc /app | |
parent | 7b72dc874d539ba520872374872f19021bec087c (diff) | |
download | redmine-4bf5c42b2bfc2fc424dfdda5f2ea4ef2fc2df657.tar.gz redmine-4bf5c42b2bfc2fc424dfdda5f2ea4ef2fc2df657.zip |
scm: cvs: code clean up model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5406 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository/cvs.rb | 8 |
1 files 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 |