summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 14:11:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 14:11:25 +0000
commit905a80977426cbebbaeef5f2b6080dddeea7454b (patch)
tree5173128ee2cb53eeb84226ecaf9dc67a5b04b94a /lib
parent8df05b9a6dff195cab71bcb769d7c78c2640c22a (diff)
downloadredmine-905a80977426cbebbaeef5f2b6080dddeea7454b.tar.gz
redmine-905a80977426cbebbaeef5f2b6080dddeea7454b.zip
scm: add "options" parameter in adapter entries().
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5638 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/darcs_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/filesystem_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb2
8 files changed, 8 insertions, 8 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 6861b0c08..eecf73fdb 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -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
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index 1abedeb2e..92e965252 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -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"
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index 0309bee78..55c527a3d 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -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)
diff --git a/lib/redmine/scm/adapters/darcs_adapter.rb b/lib/redmine/scm/adapters/darcs_adapter.rb
index 928643887..6c92391a2 100644
--- a/lib/redmine/scm/adapters/darcs_adapter.rb
+++ b/lib/redmine/scm/adapters/darcs_adapter.rb
@@ -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 : '.' )
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb
index 1575f105f..baeb182d9 100644
--- a/lib/redmine/scm/adapters/filesystem_adapter.rb
+++ b/lib/redmine/scm/adapters/filesystem_adapter.rb
@@ -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)
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index eedb7f52b..f5f922134 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -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
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index 33c32c68d..0712400ac 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -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|
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 4f544b137..ab4f9e1aa 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -91,7 +91,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 ||= ''
identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD"
entries = Entries.new