Class: Redmine::Scm::Adapters::Entries

Inherits:
Array
  • Object
show all
Defined in:
lib/redmine/scm/adapters/abstract_adapter.rb

Instance Method Summary collapse

Methods included from Redmine::StringArrayDiff::Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#revisionsObject



319
320
321
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 319

def revisions
  revisions ||= Revisions.new(collect{|entry| entry.lastrev}.compact)
end

#sort_by_nameObject



309
310
311
312
313
314
315
316
317
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 309

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