[前][次][番号順一覧][スレッド一覧]

ruby-changes:56489

From: Hiroshi <ko1@a...>
Date: Sun, 14 Jul 2019 21:53:50 +0900 (JST)
Subject: [ruby-changes:56489] Hiroshi SHIBATA: 265e94a7fa (master): Added chrry-pick feature from upstream repository.

https://git.ruby-lang.org/ruby.git/commit/?id=265e94a7fa

From 265e94a7fa96c918c4278ae58bf6e5cdb018906d Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sun, 14 Jul 2019 17:15:06 +0900
Subject: Added chrry-pick feature from upstream repository.


diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 9d30892..9b882bb 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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L237
       `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)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]