From: Linus Torvalds <torvalds@linux-foundation.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [git pull] x86 updates for v2.6.28, phase #2 - PAT updates
Date: Fri, 10 Oct 2008 10:34:14 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.00.0810101023580.3503@nehalem.linux-foundation.org> (raw)
In-Reply-To: <20081010170426.GA5947@elte.hu>
On Fri, 10 Oct 2008, Ingo Molnar wrote:
>
> the time gap between v1 and v2 was rather large, 10 days:
>
> CommitDate: Sun Sep 14 17:50:41 2008 +0200
> CommitDate: Wed Sep 24 10:07:52 2008 +0200
>
> because it took time to find and track down the lockup, and it also took
> time to come up with the fix. So i definitely wanted a delta fix (we
> handle another 150 append-only commits in a 10 day timespan so a delta
> fix is the right approach), but messed up its generation.
So because you wanted a delta fix, and if you want to keep the old series,
then yes, creating a new (local-to-your-repository-only, throw-away)
branch with the new "v2" series of patches, and then just applying them on
top of the old broken series as incremental fixes would probably be the
right thing to do.
With the reverts, there's not only all that useless noise in the logs, the
problem is that all that extra crud is actually _hiding_ what the real fix
was. So instead of seeing the fix, we just see a revert and a totally new
version. That's pretty pessimal - the whole sequence isn't bisectable
anyway.
So what I suggest are good alternatives would be:
- Make things bisectable by just using a totally new branch (and dropping
the old branch). This just throws out the buggy version, since it never
gets merged upstream, and as such nobody will ever really care what the
bug was.
This obviously depends on _others_ not having based their work on the
broken crud.
- Make nice incremental fix patches, rather than "revert and redo". This
isn't bisectable, but on the other hand it can certainly be
educational, and "git blame" etc will give reasonable results, and
people seeing the history can at least see what the bug was.
I tried to outline a couple of ways to have git help you do the second
version in the previous email. It's still going to be somewhat manual, but
especially if the difference between patch-series wasn't _that_ big, a
simple sequence of
git checkout broken
git diff broken..fixed | git apply
.. see how you want to commit the fix - maybe as one thing, maybe
as a series of independent fixes depending on the size of it ..
will get you there with fairly little pain.
Of course, if the branch had other commits to it than just the broken
series, you will need to cherry-pick those other commits to the "fixed"
branch too, so that the difference between broken and fixed is literally
just the difference between the two patch-series.
Hmm?
Linus
next prev parent reply other threads:[~2008-10-10 17:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 23:49 Ingo Molnar
2008-10-10 16:27 ` Linus Torvalds
2008-10-10 16:45 ` Ingo Molnar
2008-10-10 16:56 ` Ingo Molnar
2008-10-10 17:23 ` Linus Torvalds
2008-10-10 17:04 ` Ingo Molnar
2008-10-10 17:34 ` Linus Torvalds [this message]
2008-10-10 17:41 ` [git pull, take 2] " Ingo Molnar
2008-10-10 18:15 ` Linus Torvalds
2008-10-10 18:33 ` Ingo Molnar
2008-10-10 18:17 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.0810101023580.3503@nehalem.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®