Methods
G
Class Public methods
get_revisions(path)
# File tool/vcs.rb, line 77
def self.get_revisions(path)
  begin
    nulldevice = %w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)}
    if nulldevice
      save_stderr = STDERR.dup
      STDERR.reopen nulldevice, 'w'
    end
    info_xml = %xsvn info --xml "#{path}"`
  ensure
    if save_stderr
      STDERR.reopen save_stderr
      save_stderr.close
    end
  end
  _, last, _, changed, _ = info_xml.split(/revision="(\d+)"/)
  modified = info_xml[/<date>([^<>]*)/, 1]
  [last, changed, modified]
end