[前][次][番号順一覧][スレッド一覧]

ruby-changes:55774

From: Nobuyoshi <ko1@a...>
Date: Wed, 22 May 2019 22:28:46 +0900 (JST)
Subject: [ruby-changes:55774] Nobuyoshi Nakada: 24684a81d2 (trunk): Fix revision name

https://git.ruby-lang.org/ruby.git/commit/?id=24684a81d2

From 24684a81d2ed3ae32ad67659a8b18acd052727b5 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 22 May 2019 22:15:55 +0900
Subject: 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.

diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 0ee22da..58ff354 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -54,7 +54,7 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}" https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L54
   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
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d81a28c..0b3d284 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -234,7 +234,7 @@ def package(vcs, rev, destdir, tmp = nil) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L234
     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) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L243
       warn "#{$0}: #{rev} not found"
       return
     end
-    revision = vcs.get_revisions(url)[1]
+    revision = vcs.get_revisions(url)[0]
   end
   v = nil
   if $exported
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]