git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: git@vger.kernel.org
Subject: merge-recur status
Date: Wed, 9 Aug 2006 23:02:51 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.63.0608092232000.13885@wbgn013.biozentrum.uni-wuerzburg.de> (raw)

Hi,

with my last patches, I tested merge-recur on 'next' (46faaaf8) by 
comparing the index after -recur and -recursive, respectively.

At this stage, there are 1017 merges with exactly two parents (which is 
the only type of merge -recursive can handle).

For all but 9 of them, the indices where identical. The reason for those 9 
to differ: the order of the merge-bases. -recursive does its own thing 
(set intersection after traversing the commits by hand, probably in 
topological order), whereas with the last patches, -recur orders them by 
decreasing date.

The 9 cases are:

52bc0e29: 1 better
a5c8a98c: 1 better, 2 identical
63bccad3: 1 identical
dcaad49c: 3 identical
7f2d5cb5: 3 identical
c2b9e699: 2 identical
4cc0b8a4: 2 identical
d2b9b5f5: 1 identical
41094b8e: worse

where

- "1 better" means that -recursive has a conflicting hunk, where 
  -recur resolves it (it is identical with the commit),

- "1 identical" means that there were multiply conflicting hunks (meaning 
  that merging two merge-bases already conflicted, and another conflict 
  came on top), and the versions of -recursive and -recur differ only in 
  the order of the conflict nesting, and

- "worse" means that the merge of 859ab4c and 061ad5f, which _should_ have 
  resulted in 41094b8e (as with -recursive) resulted in a

  "fatal: Entry 'epoch.c' would be overwritten by merge. Cannot merge."

  It might have its reason in the fact that 859ab4c and 061ad5f have
  8 (!) merge bases.

Now, on average, -recur takes 0.1 seconds on average, spending only 9.9% 
of what -recursive takes (on average). So I am happy with the speed.

I think -recur is really really close to being trustworthy, _but_ I do not 
understand the reason behind the error. It happens in line 614 of 
unpack-trees.c, where the "index" contains epoch.c, and "index" and 
"remote" are identical, but "head" is empty.

I tried to wrap my head over it, but seem unable to do so. Also, I do not 
find the case 14ALT (which is mentioned in unpack-trees.c:603) in 
Documentation/technical/trivial-merge.txt.

Help?

Ciao,
Dscho

             reply	other threads:[~2006-08-09 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-09 21:02 Johannes Schindelin [this message]
2006-08-09 21:18 ` merge-recur status Junio C Hamano
2006-08-10  6:29 ` Fredrik Kuivinen
2006-08-10  7:54   ` Johannes Schindelin
2006-08-10  8:03     ` Junio C Hamano

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0608092232000.13885@wbgn013.biozentrum.uni-wuerzburg.de \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).