attic/lib/pvn/log/logcmd.rb
# this may be faster than get_nth_entry
this may be faster than get_nth_entry
this may be faster than get_nth_entry
def read_from_log_output n_matches
      loglines = output.reverse
      entries = entries
      entry = entries[-1 * n_matches]
      if true
        return entry && entry.revision.to_i
      end
      loglines.each do |line|
        next unless md = SVN_LOG_SUMMARY_LINE_RE.match(line)
        info "md: #{md}".yellow
        n_matches -= 1
        if n_matches == 0
          return md[1].to_i
        end
      end
      nil
    end
def read_from_log_output n_matches loglines = output . reverse entries = entries entry = entries [ - 1 * n_matches ] if true return entry && entry . revision . to_i end loglines . each do | line | next unless md = SVN_LOG_SUMMARY_LINE_RE . match ( line ) info "md: #{md}" . yellow n_matches -= 1 if n_matches == 0 return md [ 1 ] . to_i end end nil end
this may be faster than get_nth_entry
this may be faster than get_nth_entry
n_matches
<not_specific>