1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix revision name

* tool/make-snapshot (package): use the last revision of the whole
  tree as the revision name, not a single file.

* tool/file2lastrev.rb: ditto.  dump without unnecessary subrange
  and literal quotes, to stringize SVN revisions properly.
This commit is contained in:
Nobuyoshi Nakada 2019-05-22 22:15:55 +09:00
parent 658f17b8ec
commit 24684a81d2
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}"
when :revision_h
Proc.new {|last, changed, modified, branch, title|
[
"#define RUBY_REVISION \"#{changed[0...10]}\"",
"#define RUBY_REVISION #{last.dump}",
if branch
e = '..'
limit = 16

View file

@ -234,7 +234,7 @@ def package(vcs, rev, destdir, tmp = nil)
warn "#{$0}: unknown version - #{rev}"
return
end
revision ||= vcs.get_revisions(url)[1]
revision ||= vcs.get_revisions(url)[0]
version = nil
unless revision
url = vcs.trunk
@ -243,7 +243,7 @@ def package(vcs, rev, destdir, tmp = nil)
warn "#{$0}: #{rev} not found"
return
end
revision = vcs.get_revisions(url)[1]
revision = vcs.get_revisions(url)[0]
end
v = nil
if $exported