scm: add "options" parameter in adapter entries().

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5638 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-04 14:11:25 +00:00
parent 8df05b9a6d
commit 905a809774
8 changed files with 8 additions and 8 deletions

View 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

View 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"

View 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)

View 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 : '.' )

View 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)

View 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

View 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|

View File

@ -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