You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2002/03/12 19:42:18 UTC
conflict marker bikeshed
So I'm almost done with the patch that has 'svn update' using diff3
instead of diff+patch. (Boy oh boy, a lot of code shrunk!)
I'm noticing that diff3 is capable of creating conflict markers with 2
sections (a la CVS), or optionally with 3 sections instead.
I personally like the 3-part markers, but Karl likes the 2-part ones.
But guess what? This is a preference that a user ought to be able to
configure in the ~/.subversion/ area. I think I'll file an issue on
this. :-)
Here's sample output, by the way:
[sussman@kepler:~/projects/test/wc2]$ /usr/bin/diff3 -E -m -L ".mine" -L ".r1" -L ".r4" ./iota.61032.00001.tmp ./.svn/text-base/iota.svn-base ./.svn/tmp/text-base/iota.svn-base
<<<<<<< .mine
This is the file 'iota'.maoeuhaoeuht
=======
This is the file 'iota'.blah
>>>>>>> .r4
[sussman@kepler:~/projects/test/wc2]$ /usr/bin/diff3 -A -m -L ".mine" -L ".r1" -L ".r4" ./iota.61032.00001.tmp ./.svn/text-base/iota.svn-base ./.svn/tmp/text-base/iota.svn-base
<<<<<<< .mine
This is the file 'iota'.maoeuhaoeuht
||||||| .r1
This is the file 'iota'.
=======
This is the file 'iota'.blah
>>>>>>> .r4
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Tue, Mar 12, 2002 at 02:45:28PM -0600, Karl Fogel wrote:
> Ben Collins-Sussman <su...@collab.net> writes:
> > I personally like the 3-part markers, but Karl likes the 2-part ones.
> > But guess what? This is a preference that a user ought to be able to
> > configure in the ~/.subversion/ area. I think I'll file an issue on
> > this. :-)
>
> You know, I think I prefer the 3-part too. Does anyone strongly
> prefer the other way? If not, perhaps we should wait on making this
> configurable, and just default to 3-part conflict regions...
+1 on going with 3 part conflict regions, -0 on making it configurable
at this time. if there's a lot of outcry we can certainly make it
configurable later, but in general, i feel it's better to pick a good
behavior and go with it than it is to have a lot of little tunable
knobs.
-garrett
--
garrett rooney Unix was not designed to stop you from
rooneg@electricjellyfish.net doing stupid things, because that would
http://electricjellyfish.net/ stop you from doing clever things.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Ben Collins-Sussman <su...@collab.net>.
Karl Fogel <kf...@newton.ch.collab.net> writes:
> Garrett Rooney <ro...@electricjellyfish.net> writes:
> > i suspect that most tools that work with cvs will need considerable
> > changes to work with svn anyway, so one more change, if it gives the
> > user more information and thus makes merging easier, doesn't seem like
> > a very big deal.
>
> Whatever tool(s) Jens Askengren is talking about, it probably operates
> on the post-merge file, and doesn't interact with Subversion itself
> (except perhaps, someday, the trivial interaction of being invoked
> from Subversion).
Actually, if anything, I'd suspect that resolving conflicts with
Subversion is going to be *more* flexible in the long run, now that
we're dropping all three fulltexts into plain view. This means Fitz
can start using his crazy OSX merge tool now. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Garrett Rooney <ro...@electricjellyfish.net> writes:
> i suspect that most tools that work with cvs will need considerable
> changes to work with svn anyway, so one more change, if it gives the
> user more information and thus makes merging easier, doesn't seem like
> a very big deal.
Whatever tool(s) Jens Askengren is talking about, it probably operates
on the post-merge file, and doesn't interact with Subversion itself
(except perhaps, someday, the trivial interaction of being invoked
from Subversion).
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Tue, Mar 12, 2002 at 07:05:15PM -0600, Karl Fogel wrote:
> Jens Askengren <je...@linux.nu> writes:
> > What about compability with editors?
> > Keeping the original CVS style as default would probably be a sane
> > choice.
>
> Could you explain in more detail?
>
> I'm normally very conservative and loath to part ways with CVS on
> things like this; in this instance, I'm guessing that the full 3-way
> (-A as opposed to -E) output might be more useable. I have no direct
> experience with it, so it's just a guess.
>
> If it breaks compatibility with some existing tools, though, that's a
> pretty powerful argument in favor of -E...
i suspect that most tools that work with cvs will need considerable
changes to work with svn anyway, so one more change, if it gives the
user more information and thus makes merging easier, doesn't seem like
a very big deal.
-garrett
--
garrett rooney Unix was not designed to stop you from
rooneg@electricjellyfish.net doing stupid things, because that would
http://electricjellyfish.net/ stop you from doing clever things.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Jens Askengren <je...@linux.nu> writes:
> What about compability with editors?
> Keeping the original CVS style as default would probably be a sane
> choice.
Could you explain in more detail?
I'm normally very conservative and loath to part ways with CVS on
things like this; in this instance, I'm guessing that the full 3-way
(-A as opposed to -E) output might be more useable. I have no direct
experience with it, so it's just a guess.
If it breaks compatibility with some existing tools, though, that's a
pretty powerful argument in favor of -E...
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Ben Collins-Sussman <su...@collab.net>.
Jens Askengren <je...@linux.nu> writes:
> tis 2002-03-12 klockan 21.45 skrev Karl Fogel:
>
> > Ben Collins-Sussman <su...@collab.net> writes:
> > > I personally like the 3-part markers, but Karl likes the 2-part ones.
> > > But guess what? This is a preference that a user ought to be able to
> > > configure in the ~/.subversion/ area. I think I'll file an issue on
> > > this. :-)
> >
> > You know, I think I prefer the 3-part too. Does anyone strongly
> > prefer the other way? If not, perhaps we should wait on making this
> > configurable, and just default to 3-part conflict regions...
>
> What about compability with editors?
Editor compatibility? Huh?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Jens Askengren <je...@linux.nu>.
tis 2002-03-12 klockan 21.45 skrev Karl Fogel:
> Ben Collins-Sussman <su...@collab.net> writes:
> > I personally like the 3-part markers, but Karl likes the 2-part ones.
> > But guess what? This is a preference that a user ought to be able to
> > configure in the ~/.subversion/ area. I think I'll file an issue on
> > this. :-)
>
> You know, I think I prefer the 3-part too. Does anyone strongly
> prefer the other way? If not, perhaps we should wait on making this
> configurable, and just default to 3-part conflict regions...
What about compability with editors?
Keeping the original CVS style as default would probably be a sane
choice.
-Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: conflict marker bikeshed
Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:
> I personally like the 3-part markers, but Karl likes the 2-part ones.
> But guess what? This is a preference that a user ought to be able to
> configure in the ~/.subversion/ area. I think I'll file an issue on
> this. :-)
You know, I think I prefer the 3-part too. Does anyone strongly
prefer the other way? If not, perhaps we should wait on making this
configurable, and just default to 3-part conflict regions...
-K
> Here's sample output, by the way:
>
> [sussman@kepler:~/projects/test/wc2]$ /usr/bin/diff3 -E -m -L ".mine" -L ".r1" -L ".r4" ./iota.61032.00001.tmp ./.svn/text-base/iota.svn-base ./.svn/tmp/text-base/iota.svn-base
> <<<<<<< .mine
> This is the file 'iota'.maoeuhaoeuht
> =======
> This is the file 'iota'.blah
> >>>>>>> .r4
> [sussman@kepler:~/projects/test/wc2]$ /usr/bin/diff3 -A -m -L ".mine" -L ".r1" -L ".r4" ./iota.61032.00001.tmp ./.svn/text-base/iota.svn-base ./.svn/tmp/text-base/iota.svn-base
> <<<<<<< .mine
> This is the file 'iota'.maoeuhaoeuht
> ||||||| .r1
> This is the file 'iota'.
> =======
> This is the file 'iota'.blah
> >>>>>>> .r4
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org