diff --git a/app/models/repository.rb b/app/models/repository.rb index 1aea88fe36..5cb27c9208 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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 diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index ebb0dd7e6d..13621f6534 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -36,6 +36,10 @@ class Repository::Git < Repository 'Git' end + def supports_directory_revisions? + true + end + def repo_log_encoding 'UTF-8' end diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 19b4711385..2090b7d234 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -41,6 +41,10 @@ class Repository::Mercurial < Repository 'Mercurial' end + def supports_directory_revisions? + true + end + def repo_log_encoding 'UTF-8' end diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index b126d8d1e5..64bfcfb2ab 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -30,6 +30,10 @@ class Repository::Subversion < Repository 'Subversion' end + def supports_directory_revisions? + true + end + def repo_log_encoding 'UTF-8' end