summaryrefslogtreecommitdiffstats
path: root/app/models/repository/cvs.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
commit099ba68836b9ff4544df3c46b6f5cb8a6081a185 (patch)
tree15aec786111288b5c4ee82af2046af566b728300 /app/models/repository/cvs.rb
parent0d63e9e8fde36c88cf60095f814e5b76edb54027 (diff)
downloadredmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.tar.gz
redmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.zip
scm: cvs: fix missing author, revision and comment in tree view (#4270).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5093 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/cvs.rb')
-rw-r--r--app/models/repository/cvs.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb
index b4fcfd65c..be10e64a3 100644
--- a/app/models/repository/cvs.rb
+++ b/app/models/repository/cvs.rb
@@ -48,15 +48,15 @@ class Repository::Cvs < Repository
entries = scm.entries(path, rev.nil? ? nil : rev.committed_on)
if entries
entries.each() do |entry|
- unless entry.lastrev.nil? || entry.lastrev.identifier
+ if ( ! entry.lastrev.nil? ) && ( ! entry.lastrev.revision.nil? )
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.revision = change.changeset.revision
entry.lastrev.author = change.changeset.committer
- entry.lastrev.revision = change.revision
- entry.lastrev.branch = change.branch
+ # entry.lastrev.branch = change.branch
end
end
end