diff --git a/app/models/repository.rb b/app/models/repository.rb index 1aea88fe..5cb27c92 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 ebb0dd7e..13621f65 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 19b47113..2090b7d2 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 b126d8d1..64bfcfb2 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