summaryrefslogtreecommitdiff
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-xtool/file2lastrev.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 616c5f7..de4b928 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -47,7 +47,7 @@ rescue VCS::NotFoundError => e
abort "#{File.basename(Program)}: #{e.message}" unless @suppress_not_found
else
begin
- last, changed, modified = vcs.get_revisions(ARGV.shift)
+ last, changed, modified, branch = vcs.get_revisions(ARGV.shift)
rescue => e
abort "#{File.basename(Program)}: #{e.message}" unless @suppress_not_found
exit false
@@ -58,7 +58,8 @@ case @output
when :changed, nil
puts changed
when :revision_h
- puts "#define RUBY_REVISION #{changed.to_i}"
+ puts "#define RUBY_REVISION #{changed || 0}"
+ puts "#define RUBY_BRANCH_NAME #{branch.dump}" if branch
when :doxygen
puts "r#{changed}/r#{last}"
when :modified