From: Toshi MARUYAMA Date: Wed, 16 Mar 2011 00:49:50 +0000 (+0000) Subject: scm: set supporting all revisions or not at scm level. X-Git-Tag: 1.2.0~700 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de5c337df25c712e00df881f377094a6a8f8153b;p=redmine.git scm: set supporting all revisions or not at scm level. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5143 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/repository.rb b/app/models/repository.rb index 07e24af29..1aea88fe3 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -70,6 +70,10 @@ class Repository < ActiveRecord::Base def supports_annotate? scm.supports_annotate? end + + def supports_all_revisions? + true + end def entry(path=nil, identifier=nil) scm.entry(path, identifier) @@ -90,15 +94,15 @@ class Repository < ActiveRecord::Base def default_branch scm.default_branch end - + def properties(path, identifier=nil) scm.properties(path, identifier) end - + def cat(path, identifier=nil) scm.cat(path, identifier) end - + def diff(path, rev, rev_to) scm.diff(path, rev, rev_to) end diff --git a/app/models/repository/filesystem.rb b/app/models/repository/filesystem.rb index f06ad97c4..acbf41c7f 100644 --- a/app/models/repository/filesystem.rb +++ b/app/models/repository/filesystem.rb @@ -39,6 +39,10 @@ class Repository::Filesystem < Repository 'Filesystem' end + def supports_all_revisions? + false + end + def entries(path=nil, identifier=nil) scm.entries(path, identifier) end