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 Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#revisionsObject



213
214
215
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 213

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

#sort_by_nameObject



203
204
205
206
207
208
209
210
211
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 203

def sort_by_name
  sort {|x,y| 
    if x.kind == y.kind
      x.name <=> y.name
    else
      x.kind <=> y.kind
    end
  }   
end