Patch #39558 ยป remove-deprecated-methods.patch
| app/models/repository.rb | ||
|---|---|---|
|
scm.supports_annotate?
|
||
|
end
|
||
|
def supports_all_revisions?
|
||
|
ActiveSupport::Deprecation.warn 'Repository#supports_all_revisions? is deprecated and will be removed in Redmine 6.0. Please use #supports_history instead.'
|
||
|
supports_history?
|
||
|
end
|
||
|
def supports_history?
|
||
|
true
|
||
|
end
|
||
| lib/redmine/scm/adapters/abstract_adapter.rb | ||
|---|---|---|
|
path.end_with?('/') ? path : "#{path}/"
|
||
|
end
|
||
|
def with_trailling_slash(path)
|
||
|
ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#with_trailling_slash is ' \
|
||
|
'deprecated and will be removed in Redmine 6.0. Please use #with_trailing_slash instead.'
|
||
|
with_trailing_slash(path)
|
||
|
end
|
||
|
def without_leading_slash(path)
|
||
|
path ||= ''
|
||
|
path.gsub(%r{^/+}, '')
|
||
| ... | ... | |
|
path.end_with?('/') ? path[0..-2] : path
|
||
|
end
|
||
|
def without_trailling_slash(path)
|
||
|
ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#without_trailling_slash is ' \
|
||
|
'deprecated and will be removed in Redmine 6.0. Please use #without_trailing_slash instead.'
|
||
|
without_trailing_slash(path)
|
||
|
end
|
||
|
def valid_name?(name)
|
||
|
return true if name.nil?
|
||
|
return true if name.is_a?(Integer) && name > 0
|
||