]> source.dussan.org Git - redmine.git/commitdiff
scm: add "options" parameter in adapter entries().
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 14:11:25 +0000 (14:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 14:11:25 +0000 (14:11 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5638 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb
lib/redmine/scm/adapters/bazaar_adapter.rb
lib/redmine/scm/adapters/cvs_adapter.rb
lib/redmine/scm/adapters/darcs_adapter.rb
lib/redmine/scm/adapters/filesystem_adapter.rb
lib/redmine/scm/adapters/git_adapter.rb
lib/redmine/scm/adapters/mercurial_adapter.rb
lib/redmine/scm/adapters/subversion_adapter.rb

index 6861b0c084058b832601bc5b03cda3743a0cac62..eecf73fdb49d6917c5b0f2016806fbf65362fae3 100644 (file)
@@ -114,7 +114,7 @@ module Redmine
         
         # Returns an Entries collection
         # or nil if the given path doesn't exist in the repository
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           return nil
         end
 
index 1abedeb2edfaa453a4008a9e3b3aa6db0a45fca2..92e96525270f248eddb948417e3c474ba8dd4bed 100644 (file)
@@ -78,7 +78,7 @@ module Redmine
 
         # Returns an Entries collection
         # or nil if the given path doesn't exist in the repository
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           path ||= ''
           entries = Entries.new
           cmd = "#{self.class.sq_bin} ls -v --show-ids"
index 0309bee78111b41b127a2887920d8f14347593a7..55c527a3dd957c14cc13b1743247bb3b513190eb 100644 (file)
@@ -90,7 +90,7 @@ module Redmine
         # Returns an Entries collection
         # or nil if the given path doesn't exist in the repository
         # this method is used by the repository-browser (aka LIST)
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
           path_locale = scm_iconv(@path_encoding, 'UTF-8', path)
           path_locale.force_encoding("ASCII-8BIT") if path_locale.respond_to?(:force_encoding)
index 9286438877b47999e242c475b2aa4bf43b0fe6bc..6c92391a254893a887cff2a17cd4700a640c54bf 100644 (file)
@@ -76,7 +76,7 @@ module Redmine
 
         # Returns an Entries collection
         # or nil if the given path doesn't exist in the repository
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           path_prefix = (path.blank? ? '' : "#{path}/")
           if path.blank?
             path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' )
index 1575f105f0b5f36811392819bf2c84972efa685d..baeb182d9616279f5afe6e353ee667811ec3ad0e 100644 (file)
@@ -54,7 +54,7 @@ module Redmine
           return nil
         end
 
-        def entries(path="", identifier=nil)
+        def entries(path="", identifier=nil, options={})
           entries = Entries.new
           trgt_utf8 = target(path)
           trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
index eedb7f52b14a7d341fb0e3f8a08fca6a41c84c55..f5f92213440526cd6595506b95fdac632e676987 100644 (file)
@@ -106,7 +106,7 @@ module Redmine
           bras.include?('master') ? 'master' : bras.first
         end
 
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           path ||= ''
           p = scm_iconv(@path_encoding, 'UTF-8', path)
           entries = Entries.new
index 33c32c68dc35b83d5074f0b1a57eb87d54aa098a..0712400acff70d42296ee06d02f8e3fcd52696d7 100644 (file)
@@ -132,7 +132,7 @@ module Redmine
         end
         private :summary
 
-        def entries(path=nil, identifier=nil)
+        def entries(path=nil, identifier=nil, options={})
           p1 = scm_iconv(@path_encoding, 'UTF-8', path)
           manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)),
                         CGI.escape(without_leading_slash(p1.to_s))) do |io|
index 4f544b137cefdee6552d3c5887c759a1e37eb4a0..ab4f9e1aae461396fd3e91fe9b8212e44c0cb375 100644 (file)
@@ -91,7 +91,7 @@ module Redmine
 \r
         # Returns an Entries collection\r
         # or nil if the given path doesn't exist in the repository\r
-        def entries(path=nil, identifier=nil)\r
+        def entries(path=nil, identifier=nil, options={})\r
           path ||= ''\r
           identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD"\r
           entries = Entries.new\r