diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-14 17:15:06 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-14 21:53:19 +0900 |
commit | 265e94a7fa96c918c4278ae58bf6e5cdb018906d (patch) | |
tree | 39d55a97e1417b363f5aaa0a43fa1a0a2adc4590 /tool/sync_default_gems.rb | |
parent | be082e28003543eff5ff07cf5261dbf7b6278a50 (diff) | |
download | ruby-265e94a7fa96c918c4278ae58bf6e5cdb018906d.tar.gz |
Added chrry-pick feature from upstream repository.
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r-- | tool/sync_default_gems.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 9d3089250a..9b882bb264 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -237,6 +237,17 @@ def sync_default_gems_with_commits(gem, range) `git fetch #{gem}` end end + + IO.popen(%W"git log --format=%H #{range}") do |commits| + commits.read.split.reverse.each do |commit| + puts "Pick #{commit} from #{$repositories[gem.to_sym]}." + `git cherry-pick #{commit}` + unless $?.success? + puts "Failed to pick #{commit}." + break + end + end + end end def sync_lib(repo) |