Class: Redmine::Scm::Adapters::Entries
- Inherits:
-
Array
- Object
- Array
- Redmine::Scm::Adapters::Entries
show all
- Defined in:
- lib/redmine/scm/adapters/abstract_adapter.rb
Instance Method Summary
collapse
#diff, #patch, #replacenextlarger, #reverse_hash
Instance Method Details
#revisions ⇒ Object
320
321
322
|
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 320
def revisions
revisions ||= Revisions.new(filter_map{|entry| entry.lastrev})
end
|
#sort_by_name ⇒ Object
310
311
312
313
314
315
316
317
318
|
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 310
def sort_by_name
dup.sort! do |x, y|
if x.kind == y.kind
x.name.to_s <=> y.name.to_s
else
x.kind <=> y.kind
end
end
end
|