aboutsummaryrefslogtreecommitdiffstats
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 21:23:37 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 21:27:34 +0900
commit5da52d1210625fb00acd573b3f32281b4bde1730 (patch)
treeb21d24b02dfc1da995bc280142e2aaffcedf30ba /tool/file2lastrev.rb
parentdd0b516399f1e009667a99e815bf86c6a1245ee5 (diff)
downloadruby-5da52d1210625fb00acd573b3f32281b4bde1730.tar.gz
Migrate RUBY_VERSION/RUBY_DESCRIPTION to Git
from Subversion. This behavior is tentative and not discussed well. The point of discussion will be just the length of commit hash, and I thought we should include this kind of change in 2.7.0-preview1 release even before the length is fixed yet. Let's discuss that afterwards and fix it later as needed. Naruse suggested that length=10 is very unlikely to cause conflict, and thus it's used by email notification and rubyci now. This behavior is in favor of that for now.
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-xtool/file2lastrev.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 8d68da9f88..0ee22da712 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -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}",
+ "#define RUBY_REVISION \"#{changed[0...10]}\"",
if branch
e = '..'
limit = 16