Project

General

Profile

Bug #10636 ยป fix-make-snapshot.patch

vo.x (Vit Ondruch), 12/23/2014 12:31 PM

View differences:

tool/make-snapshot
when /\Atags\//
url = vcs.tag($')
when /\Astable\z/
vcs.branch_list(/ruby_[0-9]*/) {|n| url = /\Aruby_\d+_\d+\z/ =~ n}
vcs.branch_list("ruby_[0-9]*") {|n| url = n[/\Aruby_\d+_\d+\z/]}
url &&= vcs.branch(url)
when /\A(.*)\.(.*)\.(.*)-(preview|rc)(\d+)/
prerelease = true
tool/vcs.rb
def branch_list(pat)
IO.popen(%W"svn ls #{branch('')}") do |f|
f.each do |line|
line.chomp!('/')
line.strip!.chomp!('/')
yield(line) if File.fnmatch?(pat, line)
end
end
    (1-1/1)