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

Re: dir_delta behavior

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-02-01 02:15:41 CET

Ben Collins-Sussman wrote:

>Yo Cmike:
>
>When I run a command like:
>
> svn switch A/D/H file:///.../A/B
>
>dir_delta() seems to work fine. It happily adds all of B's entries,
>then it happily deletes all of H's entries. The anchor of the update
>(A/D/H) never changes its name, and it's entries-url is modified to
>point to B.
>
>But I forsee future problems: specifically, it seems Bad that
>dir_delta is sending additions before it sends deletions. What if I'm
>switching to a directory that contains a file with an identical name
>to one I already have?
>
> * In the common case, the two files with identical names will be
> related. (If say, I'm switching to some branch.) In that case,
> I'll just see a "U" on the file.
>
> * In the uncommon case, the files may be totally unrelated, in which
> case dir_delta wants to do to a true replacement. But to do that,
> shouldn't it be sending a delete before an add? Otherwise we're
> in for an "obstructed update" error.
>
>Cmpilato, please share your wisdom. Does dir_delta need to be tweaked
>to send deletes before adds? If so, will this screw anything else up?
>

$ cd /some/wc
$ svn mv B tmp
$ svn mv A B
$ svn mv tmp A
$ svn ci
...
$ cd /another/wc
$ svn up

Just throwing a spaner in the works,

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:02 2006

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.