diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-22 22:15:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-22 22:28:07 +0900 |
commit | 24684a81d2ed3ae32ad67659a8b18acd052727b5 (patch) | |
tree | 649cfa153638d6e88c358a900d7bc6edc20bff43 /tool/make-snapshot | |
parent | 658f17b8ec56e3f8bbd70afdb92c6e7aa156e5be (diff) | |
download | ruby-24684a81d2ed3ae32ad67659a8b18acd052727b5.tar.gz |
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.
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index d81a28c091..0b3d284a90 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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 |