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

dir_delta behavior

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-02-01 00:33:26 CET

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?

---------------------------------------------------------------------
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.