28,42d27 < def status(rev_id = nil) < cmd = "#{HG_BIN} -R #{target('')} status --rev #{rev_id-1}:#{rev_id}" < result = [] < shellout(cmd) do |io| < io.each_line do |line| < action, file = line.chomp.split < case action < when 'R' then result << { :action => 'D' , :path => "/#{file}" } < else result << { :action => action, :path => "/#{file}" } < end < end < end < result < end < 106,107c91 < rev_id = changeset[:changeset].split(':').first.to_i < revisions << Revision.new({:identifier => rev_id, --- > revisions << Revision.new({:identifier => changeset[:changeset].split(':').first.to_i, 112c96 < :paths => status(rev_id) --- > :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}} 130,131c114 < rev_id = changeset[:changeset].split(':').first.to_i < revisions << Revision.new({:identifier => rev_id, --- > revisions << Revision.new({:identifier => changeset[:changeset].split(':').first.to_i, 136c119 < :paths => status(rev_id) --- > :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}}