When I tested this with 'diff3' it does cause a merge conflict:
<<<<<<< foo.THIS
if (!thd->is_fatal_error && thd->spcont &&
||||||| foo.BASE
if (!thd->is_fatal_error &&
=======
if (!thd->is_fatal_error &&
! (MyFlags & ME_NO_SP_HANDLER) &&
>>>>>>> foo.OTHER thd->spcont->handle_error(error, MYSQL_ERROR::WARN_LEVEL_ERROR,
thd))
{
/*
Do not push any warnings, a handled error must be completely
silenced.
*/
DBUG_VOID_RETURN;
}
I guess the issue is that they don't really change the *same* line, they
just change neighboring lines. Certainly one could argue for a clean
merge to:
if (!thd->is_fatal_error && thd->spcont &&
! (MyFlags & ME_NO_SP_HANDLER) && thd->spcont->handle_error(error, MYSQL_ERROR::WARN_LEVEL_ERROR,
thd))
{
/*
Do not push any warnings, a handled error must be completely
silenced.
*/
DBUG_VOID_RETURN;
}
(I believe bzr conflicts in this case, as they are modifications on
'touching' lines. But it is at least arguable that the 'same' line was
not modified by both THIS and OTHER.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
GuilhemBichot wrote: launchpadlibrar ian.net/ 36670982/ kdiff3_ bug.txt
> ** Attachment added: "script to repeat a simple merge bug in kdiff3 (wrong automerge)"
> http://
>
When I tested this with 'diff3' it does cause a merge conflict: is_fatal_ error && thd->spcont && is_fatal_ error && is_fatal_ error &&
thd->spcont- >handle_ error(error, MYSQL_ERROR: :WARN_LEVEL_ ERROR, VOID_RETURN;
<<<<<<< foo.THIS
if (!thd->
||||||| foo.BASE
if (!thd->
=======
if (!thd->
! (MyFlags & ME_NO_SP_HANDLER) &&
>>>>>>> foo.OTHER
thd))
{
/*
Do not push any warnings, a handled error must be completely
silenced.
*/
DBUG_
}
I guess the issue is that they don't really change the *same* line, they
just change neighboring lines. Certainly one could argue for a clean
merge to:
if (!thd-> is_fatal_ error && thd->spcont &&
thd->spcont- >handle_ error(error, MYSQL_ERROR: :WARN_LEVEL_ ERROR, VOID_RETURN;
! (MyFlags & ME_NO_SP_HANDLER) &&
thd))
{
/*
Do not push any warnings, a handled error must be completely
silenced.
*/
DBUG_
}
(I believe bzr conflicts in this case, as they are modifications on
'touching' lines. But it is at least arguable that the 'same' line was
not modified by both THIS and OTHER.)
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAks hfzgACgkQJdeBCY SNAAO9bgCfaPOBy pEZsxRGP5K69L0S HTzJ luDjMYISTMLxCAj VH
qacAnR3g4k1p4VR
=FqPM
-----END PGP SIGNATURE-----