[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Automatically supply the origin URL in svn merge

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 26 Mar 2020 22:02:25 +0100

On Thu, Mar 26, 2020 at 08:46:35PM +0000, Daniel Shahaf wrote:
> Stefan Sperling wrote on Thu, 26 Mar 2020 10:45 +0100:
> > Renames are modelled as copy+delete in SVN.
>
> They are, but we can behave differently depending on whether or not the
> adding-with-history was accompanied by a deletion in the same revision.
> That is, if cwd is a working copy of foo, we'd behave differently in the
> case that foo had been created by «svnmucc cp HEAD bar foo» and in the
> case that foo had been created by «svnmucc cp HEAD bar foo rm bar».

It's not that simple, as the conflict resolver demonstates.
You're not taking cases into account where multiple copies within a
signle revision correspond to a single deletion.

So if you want to handle that then you must either error out when the
heuristic fails, or morph 'svn merge' into an interactive question and
answer game with the user, much like the conflict resolver can behave
when it finds ambiguity trying to match up copies and deletions.

All instead of requiring the user to simply type one simple argument on
the command line to run a merge!

The ultimate goal here is to allow users to type less characters when
starting merges. Scripting tab-completion for SVN URL arguments into
your favourite shell would also be a usable and effective solution.
Received on 2020-03-26 22:02:44 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.