diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-14 08:45:34 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-14 08:45:34 +0000 |
commit | cc4e8fe0d62387a0e015a5f22b451508c7d71e93 (patch) | |
tree | d579c750ad1477e406464c9b4f4a1c62d759cc4f /app/models/repository/cvs.rb | |
parent | 8b98c05879a278cd86fa83c73e5852cad3df4826 (diff) | |
download | redmine-cc4e8fe0d62387a0e015a5f22b451508c7d71e93.tar.gz redmine-cc4e8fe0d62387a0e015a5f22b451508c7d71e93.zip |
scm: add scm command and version methods at repository models (#4273).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4822 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/cvs.rb')
-rw-r--r-- | app/models/repository/cvs.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index dbbb4694f..c0cac5cdc 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -21,14 +21,14 @@ require 'digest/sha1' class Repository::Cvs < Repository validates_presence_of :url, :root_url - def scm_adapter + def self.scm_adapter_class Redmine::Scm::Adapters::CvsAdapter end - + def self.scm_name 'CVS' end - + def entry(path=nil, identifier=nil) rev = identifier.nil? ? nil : changesets.find_by_revision(identifier) scm.entry(path, rev.nil? ? nil : rev.committed_on) |