class Svnx::Log::Entry
Attributes
date[R]
entries[R]
msg[R]
paths[R]
reverse_merge[R]
revision[R]
Public Instance Methods
datetime()
click to toggle source
# File lib/svnx/log/entry.rb, line 46 def datetime @dt ||= DateTime.parse date end
find_paths(args)
click to toggle source
# File lib/svnx/log/entry.rb, line 50 def find_paths args paths.select do |path| if args[:kind] path.kind == args[:kind] end end end
inspect()
click to toggle source
# File lib/svnx/log/entry.rb, line 36 def inspect to_s end
match(action, filter)
click to toggle source
# File lib/svnx/log/entry.rb, line 40 def match action, filter paths.select do |path| path.match? action, filter end end
message()
click to toggle source
# File lib/svnx/log/entry.rb, line 28 def message @msg end
set_from_element(elmt)
click to toggle source
# File lib/svnx/log/entry.rb, line 13 def set_from_element elmt set_attr_var elmt, 'revision', convert: :to_i @reverse_merge = attribute_value elmt, 'reverse-merge' set_elmt_vars elmt, 'author', 'date', 'msg' @paths = elmt.xpath('paths/path').collect do |pe| EntryPath.new attr: pe end.sort # sorted, because svn is not consistent with order @entries = elmt.xpath('logentry').collect do |le| Entry.new le end end
to_s()
click to toggle source
# File lib/svnx/log/entry.rb, line 32 def to_s [ @revision, @author, @date, @msg ].collect { |x| x.to_s }.join " " end