-
Notifications
You must be signed in to change notification settings - Fork 26
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
Introduce cms-squash-topic #125
Conversation
A new Pull Request was created by @kpedro88 (Kevin Pedro) for branch master. @cmsbuild, @aandvalenzuela, @iarspider, @smuzaffar can you please review it and eventually sign? Thanks. |
Pull request #125 was updated. |
cms-sw/cms-sw.github.io#111 has the documentation update |
please test |
@kpedro88 I have used the new git-cms-squash-topic tool (after downloading it locally) to squash cms-sw/cmssw#43030. It worked fine but the commits sha's it has used [a] (which belong to changes before squash) does not exist. Note that I forced push the squash commit to my original branch [a]
|
@smuzaffar yes, force-pushing the squashed branch will remove the original commits from GitHub. |
@kpedro88, the commit in the message points to cms-sw/cmssw (e.g. cms-sw/cmssw@04defae) so pushing it to user branch is not going to find this commit. Question is , should we keep these broken links in the commit message ? Could it be that in future these broken commits sha start pointing to some wrong change set? |
ah my bad, it says |
I am honestly not sure if GC on the upstream repo would affect the persistence of the commits when they're only in a fork. I'm not particularly worried about SHA collisions. In any case, the commit message would obviously be different in the very rare occasion of such a collision. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c6f0dc/35246/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: Comparison SummarySummary:
|
+externals |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
@smuzaffar can you merge the correspnding cms-sw/cms-sw.github.io#111 as well? |
yes I will merge that PR once new cms-git-tools is deployed to cvmfs |
judging from the feedback given at cms-sw/cmssw#43592 (comment), seems the |
thank you @kpedro88 |
As requested in cms-sw/cms-bot#2080.
This tool is implemented as another
git-cms-merge-topic
variant, primarily to take advantage of the existing backup and old-base options.It can squash a remote branch (by performing
git-cms-checkout-topic
first) or the current branch in a local working area (using the--current
flag and not specifying the positional argument for the remote branch name).By default, it populates the commit message of the squashed commit with all the messages of the original commits, but a custom message can be provided with the
--message
option.Also did some cleanup in the code and added enforcement of unsupported options (previously, unsupported options weren't shown in the help message but could still be provided, potentially causing chaos).
Intending to update http://cms-sw.github.io/tutorial-resolve-conflicts.html accordingly (especially since squashing can also help make backports less painful), will submit a PR there soon