Message ID | 6809750d3e746fb0732995bb9a0c1fa846bbd486.camel@hammerspace.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] Please pull NFS client changes for 5.14 | expand |
On Thu, Jul 8, 2021 at 11:16 AM Trond Myklebust <trondmy@hammerspace.com> wrote: > > Please note that this branch was rebased today. The reason was I discovered > that one of the topic branches that was merged contained some duplicated patches > from the main branch (mea culpa). So the rebase simply removed those duplicates > from the topic branch. Please don't rebase just for pointless details like this. Duplicate patches aren't a problem, and we have them all the time. Yes, they can cause annoying merge conflicts (not on their own - identical patches will merge just fine - but if there are then *other* changes to the same area). But it's seldom all that big of a deal, and if there's just a couple of duplicates, then rebasing is much _worse_ than the fix. If there were *tons* of duplicate patches, and you have some workflow issue, that's one thing - and then you need to fix the workflow. But particularly for just a couple of patches, rebasing and losing all the testing is really entirely the wrong thing to do. In other words: only rebase for *catastrophic* stuff. Only yo fix things that are actively broken. Not for some minor technical issue. I've pulled this, but please avoid this in the future. Linus
On Fri, 2021-07-09 at 09:51 -0700, Linus Torvalds wrote: > On Thu, Jul 8, 2021 at 11:16 AM Trond Myklebust > <trondmy@hammerspace.com> wrote: > > > > Please note that this branch was rebased today. The reason was I > > discovered > > that one of the topic branches that was merged contained some > > duplicated patches > > from the main branch (mea culpa). So the rebase simply removed > > those duplicates > > from the topic branch. > > Please don't rebase just for pointless details like this. > > Duplicate patches aren't a problem, and we have them all the time. > > Yes, they can cause annoying merge conflicts (not on their own - > identical patches will merge just fine - but if there are then > *other* > changes to the same area). But it's seldom all that big of a deal, > and > if there's just a couple of duplicates, then rebasing is much _worse_ > than the fix. > > If there were *tons* of duplicate patches, and you have some workflow > issue, that's one thing - and then you need to fix the workflow. But > particularly for just a couple of patches, rebasing and losing all > the > testing is really entirely the wrong thing to do. > > In other words: only rebase for *catastrophic* stuff. Only yo fix > things that are actively broken. Not for some minor technical issue. > > I've pulled this, but please avoid this in the future. > > Linus Thanks! It didn't result in any overall code changes or even changes to the result of the merges. However if you're OK with the occasional duplicate patch then I'll make sure to avoid this in the future.
On Fri, Jul 9, 2021 at 9:55 AM Trond Myklebust <trondmy@hammerspace.com> wrote: > > Thanks! It didn't result in any overall code changes or even changes to > the result of the merges. However if you're OK with the occasional > duplicate patch then I'll make sure to avoid this in the future. The occasional duplicate patch is actually completely normal. Particularly when it is something like an important fix that gets pushed to mainline late in the -rc series: people often want them in their development trees as well for testing, and so you end up with the same fix both in mainline and in the "for next merge window" branch. In fact, that "important fix that goes to both branches" can be a very good thing, exactly because you want to test that -next branch, and you want to do it without having to worry about old bugs that might trigger or hide new issues. And then I very much want to pull that _tested_ development branch, not some "ok, I removed that fix from the branch before asking Linus to pull, because it's already in his tree". See? And yes, sometimes they happen by mistake, and the duplication is not intentional, and it's not some "good thing". It happens just because the same patch was sent two different ways. That's fine too. It's a problem if they happen a _lot_ - partly because they do make it much more likely to cause pointless merge conflicts (and mistakes can happen during that stage), but even more because it shows that something is going wrong in the patch management, and people are stepping on each other's feet. So then the duplicate patches is not necessarily a _technical_ problem, but it's indicative that something is wrong with patch flow. But even then removing the duplicate patches is generally less important than trying to fix the maintenance issue. So on the whole, a couple of duplicate patches isn't a big deal, and not worth rebasing. Aim to keep rebasing mainly for "oh, keeping that will cause actual problems" (and sometimes the "actual problems" can be about things like truly horribly mangled commit messages and wrong attribution etc). So rebasing isn't necessarily always "wrong", but it just needs to have a fairly compelling reason. Linus
The pull request you sent on Thu, 8 Jul 2021 18:16:06 +0000:
> git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-5.14-1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/96890bc2eaa1f6bfc1b194e0f0815a10824352a4
Thank you!