diff options
author | Takashi Kokubun <[email protected]> | 2024-06-11 11:28:03 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2024-06-11 11:28:04 -0700 |
commit | 0a6b1a4d9de583ebfd305ab1b297be1cea7bdc2f (patch) | |
tree | bc7906e667f64556c78c7da2a2895a5c74af8f76 | |
parent | ec1ea2c5b941d5ff94013772a0dba905f8fe5c78 (diff) |
redmine-backporter.rb: Prepend commit: to shorter revs
Some of the places in Redmine (e.g. Associated revisions) print
revisions using only 8 characters. Even when I copied a revision from
there, I want to prepend commit: in the message.
-rwxr-xr-x | tool/redmine-backporter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 843132ab3a..73d375b146 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -358,7 +358,7 @@ eom str = log[/merge revision\(s\) ([^:]+)(?=:)/] if str str.sub!(/\Amerge/, 'merged') - str.gsub!(/\h{40}/, 'commit:\0') + str.gsub!(/\h{8,40}/, 'commit:\0') str = "ruby_#{TARGET_VERSION.tr('.','_')} commit:#{rev} #{str}." else str = "ruby_#{TARGET_VERSION.tr('.','_')} commit:#{rev}." |