Patch #39558 ยป remove-deprecated-methods.patch
app/models/repository.rb | ||
---|---|---|
186 | 186 |
scm.supports_annotate? |
187 | 187 |
end |
188 | 188 | |
189 |
def supports_all_revisions? |
|
190 |
ActiveSupport::Deprecation.warn 'Repository#supports_all_revisions? is deprecated and will be removed in Redmine 6.0. Please use #supports_history instead.' |
|
191 |
supports_history? |
|
192 |
end |
|
193 | ||
194 | 189 |
def supports_history? |
195 | 190 |
true |
196 | 191 |
end |
lib/redmine/scm/adapters/abstract_adapter.rb | ||
---|---|---|
167 | 167 |
path.end_with?('/') ? path : "#{path}/" |
168 | 168 |
end |
169 | 169 | |
170 |
def with_trailling_slash(path) |
|
171 |
ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#with_trailling_slash is ' \ |
|
172 |
'deprecated and will be removed in Redmine 6.0. Please use #with_trailing_slash instead.' |
|
173 |
with_trailing_slash(path) |
|
174 |
end |
|
175 | ||
176 | 170 |
def without_leading_slash(path) |
177 | 171 |
path ||= '' |
178 | 172 |
path.gsub(%r{^/+}, '') |
... | ... | |
183 | 177 |
path.end_with?('/') ? path[0..-2] : path |
184 | 178 |
end |
185 | 179 | |
186 |
def without_trailling_slash(path) |
|
187 |
ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#without_trailling_slash is ' \ |
|
188 |
'deprecated and will be removed in Redmine 6.0. Please use #without_trailing_slash instead.' |
|
189 |
without_trailing_slash(path) |
|
190 |
end |
|
191 | ||
192 | 180 |
def valid_name?(name) |
193 | 181 |
return true if name.nil? |
194 | 182 |
return true if name.is_a?(Integer) && name > 0 |