From: Russell King <rmk@arm.linux.org.uk>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Linus Torvalds <torvalds@osdl.org>,
Wayne Scott <wsc9tt@gmail.com>,
git@vger.kernel.org
Subject: Re: bogus merges
Date: Sun, 11 Sep 2005 12:01:40 +0100 [thread overview]
Message-ID: <20050911120140.A8236@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.63.0509061409180.23242@iabervon.org>; from barkalow@iabervon.org on Tue, Sep 06, 2005 at 02:28:39PM -0400
On Tue, Sep 06, 2005 at 02:28:39PM -0400, Daniel Barkalow wrote:
> On Mon, 5 Sep 2005, Linus Torvalds wrote:
> > On Mon, 5 Sep 2005, Wayne Scott wrote:
> > >
> > > A recent commit in linux-2.6 looks like this:
> >
> > It hopefully shouldn't happen any more with the improved and fixed
> > git-merge-base.
>
> Couldn't it also happen if there's stale data in MERGE_HEAD when you
> commit a normal patch?
I don't think Cogito has the idea of a MERGE_HEAD file.
> The description doesn't look like a merge at all,
> but rather like a normal patch that inappropriately picked up an extra
> head. I'd guess he tried to merge something, got a conflict, decided that
> he didn't really want to do that anyway, switched to a different branch,
> applied a patch, and committed without noticing the note that he seemed to
> be committing a merge.
"HE'd" hadn't (please don't use the third person when you're talking about
someone who is being copied on the thread, thanks.) Look closer at the
two heads (I've cut out the author info):
commit b129a8ccd53f74c43e4c83c8e0031a4990040830
tree 4c40afd836be87166d6d014380262f1baa19694f
parent 6b39374a27eb4be7e9d82145ae270ba02ea90dc8
parent 194d0710e1a7fe92dcf860ddd31fded8c3103b7a
committer Russell King <rmk+kernel@arm.linux.org.uk> Wed, 31 Aug 2005 10:12:14 +0100
[SERIAL] Clean up and fix tty transmission start/stoping
which was apparantly (but not really) a merge between:
commit 6b39374a27eb4be7e9d82145ae270ba02ea90dc8
tree 09933113cf28f253db1dd539463bdab741d67139
parent 62c592edead3c3a045662595f7ade3c12f133373
parent ed735ccbefaf7e5e3ef61418f7e209b8c59308a7
committer Linus Torvalds <torvalds@g5.osdl.org> Tue, 30 Aug 2005 11:16:30 -0700
Merge refs/heads/upstream from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git
commit 194d0710e1a7fe92dcf860ddd31fded8c3103b7a
tree da03b56fa4dee221c53af5770492d391f0d09459
parent a68d2ebc1581a3aec57bd032651e013fa609f530
parent 9bbd03758945858c9303f3258b418b94c4ffd735
committer Linus Torvalds <torvalds@g5.osdl.org> Wed, 03 Aug 2005 13:09:43 -0700
Merge master.kernel.org:/home/rmk/linux-2.6-arm
However, the serial tree (which commit b129a8ccd53f74c43e4c83c8e0031a4990040830
was created in) was last pulled in commit 975f957dc408925805dd8f5aa4217b7eeea2d005.
Following the commit trail, you'll end up at commit
6b39374a27eb4be7e9d82145ae270ba02ea90dc8 above.
commit 975f957dc408925805dd8f5aa4217b7eeea2d005
tree 2198bb72323a016d93c7440c9240bac94a5c0016
parent 2321fbd2b87539edc1fbfc2e186528a1ef93835f
parent 661299d9d0437a0ff72240f3d60016ac3a361a6e
committer Linus Torvalds <torvalds@g5.osdl.org> Mon, 29 Aug 2005 10:34:59 -0700
Merge HEAD from master.kernel.org:/home/rmk/linux-2.6-serial.git
which was the result of the following merge between the head of the
serial tree and Linus' tree:
commit 661299d9d0437a0ff72240f3d60016ac3a361a6e
tree 765512576314fc3612b503f182b9ae4e60fcf849
parent 05caac585f8abd6c0113856bc8858e3ef214d8a6
parent 41c018b7ecb60b1c2c4d5dee0cd37d32a94c45af
committer Russell King <rmk+kernel@arm.linux.org.uk> Thu, 28 Jul 2005 09:30:20 +0100
Merge with Linus' 2.6 tree
This was at the head of the serial tree at the time:
commit 05caac585f8abd6c0113856bc8858e3ef214d8a6
tree ac9f8f2cc032281af09200da514257d120510906
parent 241fc4367b3ca5d407b043599ed980304a70b91f
committer Russell King <rmk+kernel@arm.linux.org.uk> Wed, 27 Jul 2005 11:41:18 +0100
[SERIAL] Convert parport_serial to use new 8250_pci interfaces
So, the question is, if the serial git tree was all happy in the
merge on 29th August (975f957dc408925805dd8f5aa4217b7eeea2d005)
why did the next commit to that tree (being
b129a8ccd53f74c43e4c83c8e0031a4990040830) go wrong when the
previous merge would have been a standard fast-forward operation.
There is _no_ reason why the serial tree would have been wound back
to 3rd August.
> Probably the right thing is actually to clean up more when switching
> tasks, but it would probably also be worth checking that merges make sense
> as well.
You might be right except for one small detail. I don't "switch tasks"
with a single git tree. I have a set of individual git trees, one per
"task". They always remain in a clean state due to the way I work:
- update tree to Linus if Linus tree is a superset of the tree
- apply changes in patch form to tree and commit each in turn
- send linus a request to merge
However, occasionally, I update the tree when Linus' tree is not a
superset, as was the case in 661299d9d0437a0ff72240f3d60016ac3a361a6e
above.
--
Russell King
next prev parent reply other threads:[~2005-09-11 11:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 14:38 bogus merges Wayne Scott
2005-09-05 16:01 ` Linus Torvalds
2005-09-06 13:08 ` Wayne Scott
2005-09-11 11:06 ` Russell King
2005-09-06 18:28 ` Daniel Barkalow
2005-09-11 11:01 ` Russell King [this message]
2005-09-11 18:08 ` Daniel Barkalow
2005-09-12 0:58 ` Petr Baudis
2005-09-11 10:21 ` Russell King
2005-09-11 11:48 ` Martin Langhoff
2005-09-11 15:11 ` A Large Angry SCM
2005-09-11 18:36 ` Russell King
2005-09-11 18:00 ` Russell King
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=20050911120140.A8236@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=wsc9tt@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).