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:
parent
8df05b9a6d
commit
905a809774
@ -114,7 +114,7 @@ module Redmine
|
|||||||
|
|
||||||
# Returns an Entries collection
|
# Returns an Entries collection
|
||||||
# or nil if the given path doesn't exist in the repository
|
# 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
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ module Redmine
|
|||||||
|
|
||||||
# Returns an Entries collection
|
# Returns an Entries collection
|
||||||
# or nil if the given path doesn't exist in the repository
|
# 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 ||= ''
|
path ||= ''
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
cmd = "#{self.class.sq_bin} ls -v --show-ids"
|
cmd = "#{self.class.sq_bin} ls -v --show-ids"
|
||||||
|
@ -90,7 +90,7 @@ module Redmine
|
|||||||
# Returns an Entries collection
|
# Returns an Entries collection
|
||||||
# or nil if the given path doesn't exist in the repository
|
# or nil if the given path doesn't exist in the repository
|
||||||
# this method is used by the repository-browser (aka LIST)
|
# 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}'"
|
logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
|
||||||
path_locale = scm_iconv(@path_encoding, 'UTF-8', path)
|
path_locale = scm_iconv(@path_encoding, 'UTF-8', path)
|
||||||
path_locale.force_encoding("ASCII-8BIT") if path_locale.respond_to?(:force_encoding)
|
path_locale.force_encoding("ASCII-8BIT") if path_locale.respond_to?(:force_encoding)
|
||||||
|
@ -76,7 +76,7 @@ module Redmine
|
|||||||
|
|
||||||
# Returns an Entries collection
|
# Returns an Entries collection
|
||||||
# or nil if the given path doesn't exist in the repository
|
# 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}/")
|
path_prefix = (path.blank? ? '' : "#{path}/")
|
||||||
if path.blank?
|
if path.blank?
|
||||||
path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' )
|
path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' )
|
||||||
|
@ -54,7 +54,7 @@ module Redmine
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def entries(path="", identifier=nil)
|
def entries(path="", identifier=nil, options={})
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
trgt_utf8 = target(path)
|
trgt_utf8 = target(path)
|
||||||
trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
|
trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
|
||||||
|
@ -106,7 +106,7 @@ module Redmine
|
|||||||
bras.include?('master') ? 'master' : bras.first
|
bras.include?('master') ? 'master' : bras.first
|
||||||
end
|
end
|
||||||
|
|
||||||
def entries(path=nil, identifier=nil)
|
def entries(path=nil, identifier=nil, options={})
|
||||||
path ||= ''
|
path ||= ''
|
||||||
p = scm_iconv(@path_encoding, 'UTF-8', path)
|
p = scm_iconv(@path_encoding, 'UTF-8', path)
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
|
@ -132,7 +132,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
private :summary
|
private :summary
|
||||||
|
|
||||||
def entries(path=nil, identifier=nil)
|
def entries(path=nil, identifier=nil, options={})
|
||||||
p1 = scm_iconv(@path_encoding, 'UTF-8', path)
|
p1 = scm_iconv(@path_encoding, 'UTF-8', path)
|
||||||
manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)),
|
manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)),
|
||||||
CGI.escape(without_leading_slash(p1.to_s))) do |io|
|
CGI.escape(without_leading_slash(p1.to_s))) do |io|
|
||||||
|
@ -91,7 +91,7 @@ module Redmine
|
|||||||
|
|
||||||
# Returns an Entries collection
|
# Returns an Entries collection
|
||||||
# or nil if the given path doesn't exist in the repository
|
# 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 ||= ''
|
path ||= ''
|
||||||
identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD"
|
identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD"
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user