diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-22 23:18:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-22 23:53:21 +0900 |
commit | a205e24747497391390ef7c004293a8a7934dd96 (patch) | |
tree | 404c7576caf233c612a78966047de8218beebf57 /tool/file2lastrev.rb | |
parent | d819d97cf02fd0a5b5b1f6ee69c9fdb83276e6c2 (diff) | |
download | ruby-a205e24747497391390ef7c004293a8a7934dd96.tar.gz |
Make RUBY_REVISION full length
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-x | tool/file2lastrev.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 58ff354d3d..24fbaeb0d7 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -45,6 +45,7 @@ parser = OptionParser.new {|opts| } parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}" +vcs = nil @output = case @output when :changed, nil @@ -54,7 +55,8 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}" when :revision_h Proc.new {|last, changed, modified, branch, title| [ - "#define RUBY_REVISION #{last.dump}", + "#define RUBY_REVISION #{vcs.short_revision(last).dump}", + "#define RUBY_FULL_REVISION #{last.dump}", if branch e = '..' limit = 16 |