-
Notifications
You must be signed in to change notification settings - Fork 29
Support the creation of a new branch before cherry-picking. #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
A new Pull Request was created by @bfonta for branch master. @akritkbehera, @cmsbuild, @iarspider, @smuzaffar can you please review it and eventually sign? Thanks. |
|
cms-bot internal usage |
|
type ngt |
|
How about using |
|
Pull request #131 was updated. |
|
@fwyzard The |
|
|
@fwyzard I saw it, but it was already introduced in |
|
No need to change it - I'm anyway not the target audience of this and most other cms-git tools, since I prefer to use the underlying git tools, since I know what they actually do :-) |
|
@smuzaffar Could you please open a cmsdist for tests? |
Added an option to create a new branch before cherry-picking.
This is quite a common operation, for instance whenever starting from a clean release, in order not to loose the original clean
from-CMSSW_...branch. The-cflag was chosen to replicate whatgit switch -c <branch>does. On top, AFAICT from thegit cherry-pickdocumentation, the-cflag has no meaning forgit cherry-pick.The code contains logic to delete the new branch in case any later operation fails.
Tested manually under
CMSSW_15_1_0_pre5. Validating it with a random non-existing commit activates thetrap, and works as expected: