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

app/models/repository.rb
app/models/repository/git.rb
app/models/repository/mercurial.rb
app/models/repository/subversion.rb

index 1aea88fe36c32fea15f4b399b7cb488fe7b8afe0..5cb27c920856b4f46287c5df2faf936ea25522ef 100644 (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
index ebb0dd7e6dc420a7cce694d13f858d1733695d11..13621f6534775836e53493dd994719b751db82fe 100644 (file)
@@ -36,6 +36,10 @@ class Repository::Git < Repository
     'Git'
   end
 
+  def supports_directory_revisions?
+    true
+  end
+
   def repo_log_encoding
     'UTF-8'
   end
index 19b471138532e9d8addb8db21a9daa1c3b5e2bcf..2090b7d234ab867a886598ca5825f9e28d099cdb 100644 (file)
@@ -41,6 +41,10 @@ class Repository::Mercurial < Repository
     'Mercurial'
   end
 
+  def supports_directory_revisions?
+    true
+  end
+
   def repo_log_encoding
     'UTF-8'
   end
index b126d8d1e55c930599cfd1872a825bc00dc872d8..64bfcfb2ab085b03d9322ea576df84740e0d3774 100644 (file)
@@ -30,6 +30,10 @@ class Repository::Subversion < Repository
     'Subversion'
   end
 
+  def supports_directory_revisions?
+    true
+  end
+
   def repo_log_encoding
     'UTF-8'
   end