Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.334 kb
#!/usr/bin/env ruby
# Exports revisions from mercurial.
# @param ... arguments for `hg log`
#--
# Written in 2006 by Suraj N. Kurapati
revs = `hg log #{ARGV.join(' ')}`.scan(/changeset:\s+(\d+):/)
revs.flatten!
File.open('manifest', 'w') do |f|
f.puts revs
end
revs.each do |r|
system 'hg', 'export', '-o', "#{r}.diff", r
end
Jump to Line
Something went wrong with that request. Please try again.