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

Re: SVN-4709 shelve: deleted file becomes 'replaced'

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 25 Jan 2018 13:48:57 +0000

Julian Foad wrote on Wed, 24 Jan 2018 21:32 +0000:
> When 'svn patch' applies an 'add file' patch onto a WC path whose local
> schedule is 'delete', it changes the schedule to 'replace'.
> Sequences such as this...
> > svn rm foo
> > svn diff > rm-foo.diff
> > svn patch --reverse-diff rm-foo.diff
> or this...
> > svn add foo
> > svn diff > add-foo.diff
> > svn commit
> > svn patch --reverse-diff add-foo.diff
> > svn patch add-foo.diff
> ... result in 'foo' being scheduled as 'replace'.

In both of these examples, the result is a working copy in which a file
is scheduled to be replaced (without history) by another file that is
textually identical to it. Do you also have examples for wanting to
reduce a replace into a modification where the replacing file would be
textually different from the replaced file?

> It is not inherently necessary that shelving and manual use of 'svn
> patch' should share the same solution, but in this case I think that is
> best.


Received on 2018-01-25 14:49:09 CET

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

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