]> source.dussan.org Git - redmine.git/commitdiff
scm: set supporting all revisions or not at scm level.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Mar 2011 00:49:50 +0000 (00:49 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Mar 2011 00:49:50 +0000 (00:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5143 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb
app/models/repository/filesystem.rb

index 07e24af29df7e461500d94356cc83a11dce7193a..1aea88fe36c32fea15f4b399b7cb488fe7b8afe0 100644 (file)
@@ -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
index f06ad97c44159be7e30ab47396f14f94e7196056..acbf41c7ff2c73667d3341404ac4f33420b8fb15 100644 (file)
@@ -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