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
parent de5c337df2
commit bae1763a09
4 changed files with 16 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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