Class: Redmine::Scm::Adapters::Entries
- Inherits:
-
Array
- Object
- Array
- Redmine::Scm::Adapters::Entries
show all
- Defined in:
- lib/redmine/scm/adapters/abstract_adapter.rb
Overview
Instance Method Summary
collapse
Methods included from Diffable
#diff, #patch, #replacenextlarger, #reverse_hash
Instance Method Details
#revisions ⇒ Object
307
308
309
|
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 307
def revisions
revisions ||= Revisions.new(collect{|entry| entry.lastrev}.compact)
end
|
#sort_by_name ⇒ Object
297
298
299
300
301
302
303
304
305
|
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 297
def sort_by_name
dup.sort! {|x,y|
if x.kind == y.kind
x.name.to_s <=> y.name.to_s
else
x.kind <=> y.kind
end
}
end
|