@@ -114,7 +114,7 module Redmine | |||||
114 |
|
114 | |||
115 | # Returns an Entries collection |
|
115 | # Returns an Entries collection | |
116 | # or nil if the given path doesn't exist in the repository |
|
116 | # or nil if the given path doesn't exist in the repository | |
117 | def entries(path=nil, identifier=nil) |
|
117 | def entries(path=nil, identifier=nil, options={}) | |
118 | return nil |
|
118 | return nil | |
119 | end |
|
119 | end | |
120 |
|
120 |
@@ -78,7 +78,7 module Redmine | |||||
78 |
|
78 | |||
79 | # Returns an Entries collection |
|
79 | # Returns an Entries collection | |
80 | # or nil if the given path doesn't exist in the repository |
|
80 | # or nil if the given path doesn't exist in the repository | |
81 | def entries(path=nil, identifier=nil) |
|
81 | def entries(path=nil, identifier=nil, options={}) | |
82 | path ||= '' |
|
82 | path ||= '' | |
83 | entries = Entries.new |
|
83 | entries = Entries.new | |
84 | cmd = "#{self.class.sq_bin} ls -v --show-ids" |
|
84 | cmd = "#{self.class.sq_bin} ls -v --show-ids" |
@@ -90,7 +90,7 module Redmine | |||||
90 | # Returns an Entries collection |
|
90 | # Returns an Entries collection | |
91 | # or nil if the given path doesn't exist in the repository |
|
91 | # or nil if the given path doesn't exist in the repository | |
92 | # this method is used by the repository-browser (aka LIST) |
|
92 | # this method is used by the repository-browser (aka LIST) | |
93 | def entries(path=nil, identifier=nil) |
|
93 | def entries(path=nil, identifier=nil, options={}) | |
94 | logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'" |
|
94 | logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'" | |
95 | path_locale = scm_iconv(@path_encoding, 'UTF-8', path) |
|
95 | path_locale = scm_iconv(@path_encoding, 'UTF-8', path) | |
96 | path_locale.force_encoding("ASCII-8BIT") if path_locale.respond_to?(:force_encoding) |
|
96 | path_locale.force_encoding("ASCII-8BIT") if path_locale.respond_to?(:force_encoding) |
@@ -76,7 +76,7 module Redmine | |||||
76 |
|
76 | |||
77 | # Returns an Entries collection |
|
77 | # Returns an Entries collection | |
78 | # or nil if the given path doesn't exist in the repository |
|
78 | # or nil if the given path doesn't exist in the repository | |
79 | def entries(path=nil, identifier=nil) |
|
79 | def entries(path=nil, identifier=nil, options={}) | |
80 | path_prefix = (path.blank? ? '' : "#{path}/") |
|
80 | path_prefix = (path.blank? ? '' : "#{path}/") | |
81 | if path.blank? |
|
81 | if path.blank? | |
82 | path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' ) |
|
82 | path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' ) |
@@ -54,7 +54,7 module Redmine | |||||
54 | return nil |
|
54 | return nil | |
55 | end |
|
55 | end | |
56 |
|
56 | |||
57 | def entries(path="", identifier=nil) |
|
57 | def entries(path="", identifier=nil, options={}) | |
58 | entries = Entries.new |
|
58 | entries = Entries.new | |
59 | trgt_utf8 = target(path) |
|
59 | trgt_utf8 = target(path) | |
60 | trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8) |
|
60 | trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8) |
@@ -106,7 +106,7 module Redmine | |||||
106 | bras.include?('master') ? 'master' : bras.first |
|
106 | bras.include?('master') ? 'master' : bras.first | |
107 | end |
|
107 | end | |
108 |
|
108 | |||
109 | def entries(path=nil, identifier=nil) |
|
109 | def entries(path=nil, identifier=nil, options={}) | |
110 | path ||= '' |
|
110 | path ||= '' | |
111 | p = scm_iconv(@path_encoding, 'UTF-8', path) |
|
111 | p = scm_iconv(@path_encoding, 'UTF-8', path) | |
112 | entries = Entries.new |
|
112 | entries = Entries.new |
@@ -132,7 +132,7 module Redmine | |||||
132 | end |
|
132 | end | |
133 | private :summary |
|
133 | private :summary | |
134 |
|
134 | |||
135 | def entries(path=nil, identifier=nil) |
|
135 | def entries(path=nil, identifier=nil, options={}) | |
136 | p1 = scm_iconv(@path_encoding, 'UTF-8', path) |
|
136 | p1 = scm_iconv(@path_encoding, 'UTF-8', path) | |
137 | manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)), |
|
137 | manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)), | |
138 | CGI.escape(without_leading_slash(p1.to_s))) do |io| |
|
138 | CGI.escape(without_leading_slash(p1.to_s))) do |io| |
@@ -91,7 +91,7 module Redmine | |||||
91 |
|
91 | |||
92 | # Returns an Entries collection |
|
92 | # Returns an Entries collection | |
93 | # or nil if the given path doesn't exist in the repository |
|
93 | # or nil if the given path doesn't exist in the repository | |
94 | def entries(path=nil, identifier=nil) |
|
94 | def entries(path=nil, identifier=nil, options={}) | |
95 | path ||= '' |
|
95 | path ||= '' | |
96 | identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD" |
|
96 | identifier = (identifier and identifier.to_i > 0) ? identifier.to_i : "HEAD" | |
97 | entries = Entries.new |
|
97 | entries = Entries.new |
General Comments 0
You need to be logged in to leave comments.
Login now