diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-15 15:47:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-15 15:47:28 +0000 |
commit | ca6e69ec247e10c521f22fba542404720cc2ebff (patch) | |
tree | d0f7633f5f0ee55e6c4b9e99397b3ae4d142a420 /lib/redmine | |
parent | 93b3dba926ef9593c6849b2e84f57de176c595f1 (diff) | |
download | redmine-ca6e69ec247e10c521f22fba542404720cc2ebff.tar.gz redmine-ca6e69ec247e10c521f22fba542404720cc2ebff.zip |
Fixed: view file at given revision with CVS.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1553 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/cvs_adapter.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 18f26b9c8..089a6b153 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -245,7 +245,9 @@ module Redmine identifier = (identifier) ? identifier : "HEAD" logger.debug "<cvs> cat path:'#{path}',identifier #{identifier}" path_with_project="#{url}#{with_leading_slash(path)}" - cmd = "#{CVS_BIN} -d #{root_url} co -r#{identifier} -p #{shell_quote path_with_project}" + cmd = "#{CVS_BIN} -d #{root_url} co" + cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier + cmd << " -p #{shell_quote path_with_project}" cat = nil shellout(cmd) do |io| cat = io.read |