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:
parent
658f17b8ec
commit
24684a81d2
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue