scm: set supporting directory revisions or not at scm level.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5144 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-16 00:50:11 +00:00 committed by Eric Davis
parent 8412b4f104
commit e311b26c41
4 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,10 @@ class Repository < ActiveRecord::Base
true true
end end
def supports_directory_revisions?
false
end
def entry(path=nil, identifier=nil) def entry(path=nil, identifier=nil)
scm.entry(path, identifier) scm.entry(path, identifier)
end end

View File

@ -36,6 +36,10 @@ class Repository::Git < Repository
'Git' 'Git'
end end
def supports_directory_revisions?
true
end
def repo_log_encoding def repo_log_encoding
'UTF-8' 'UTF-8'
end end

View File

@ -41,6 +41,10 @@ class Repository::Mercurial < Repository
'Mercurial' 'Mercurial'
end end
def supports_directory_revisions?
true
end
def repo_log_encoding def repo_log_encoding
'UTF-8' 'UTF-8'
end end

View File

@ -30,6 +30,10 @@ class Repository::Subversion < Repository
'Subversion' 'Subversion'
end end
def supports_directory_revisions?
true
end
def repo_log_encoding def repo_log_encoding
'UTF-8' 'UTF-8'
end end