summaryrefslogtreecommitdiffstats
path: root/app/models/repository/cvs.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-06 10:35:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-06 10:35:55 +0000
commit154f60edd353c2215b9e1622a2e47bdcc5f70101 (patch)
treed12b75e28a5a719b6da5b4102f2651da6702ad3f /app/models/repository/cvs.rb
parentc37abb64151e18461cb739ed4658d912a7c752e8 (diff)
downloadredmine-154f60edd353c2215b9e1622a2e47bdcc5f70101.tar.gz
redmine-154f60edd353c2215b9e1622a2e47bdcc5f70101.zip
Fix repository browsing at given revision for various scm and add tests for this.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1329 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/cvs.rb')
-rw-r--r--app/models/repository/cvs.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb
index a78b60806..7c01a27ee 100644
--- a/app/models/repository/cvs.rb
+++ b/app/models/repository/cvs.rb
@@ -35,7 +35,8 @@ class Repository::Cvs < Repository
end
def entries(path=nil, identifier=nil)
- entries=scm.entries(path, identifier)
+ rev = identifier.nil? ? nil : changesets.find_by_revision(identifier)
+ entries = scm.entries(path, rev.nil? ? nil : rev.committed_on)
if entries
entries.each() do |entry|
unless entry.lastrev.nil? || entry.lastrev.identifier