##// END OF EJS Templates
Fixed: CVS browser should not show dead revisions (deleted files) (#2319)....
Jean-Philippe Lang -
r2133:840bb53f5b65
parent child
Show More
@@ -63,7 +63,7 module Redmine
63 logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
63 logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
64 path_with_project="#{url}#{with_leading_slash(path)}"
64 path_with_project="#{url}#{with_leading_slash(path)}"
65 entries = Entries.new
65 entries = Entries.new
66 cmd = "#{CVS_BIN} -d #{root_url} rls -ed"
66 cmd = "#{CVS_BIN} -d #{root_url} rls -e"
67 cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier
67 cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier
68 cmd << " #{shell_quote path_with_project}"
68 cmd << " #{shell_quote path_with_project}"
69 shellout(cmd) do |io|
69 shellout(cmd) do |io|
@@ -53,6 +53,12 class RepositoryCvsTest < Test::Unit::TestCase
53 @repository.fetch_changesets
53 @repository.fetch_changesets
54 assert_equal 5, @repository.changesets.count
54 assert_equal 5, @repository.changesets.count
55 end
55 end
56
57 def test_deleted_files_should_not_be_listed
58 entries = @repository.entries('sources')
59 assert entries.detect {|e| e.name == 'watchers_controller.rb'}
60 assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'}
61 end
56 else
62 else
57 puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
63 puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
58 def test_fake; assert true end
64 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now