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

Re: Copy/move-handling on update in 1.5

From: Freddie Albertsman <c03fan_at_cs.umu.se>
Date: 2007-12-06 11:10:31 CET

Hey Guys!
I have one question concerning concerning the "update ignores added
files/dirs":

Consider the following scenario:

repos. contains /trunk/foo

#user A
rename foo -> bar
echo "HELLO BAR" > bar

#user B
rename foo -> baz
echo "HELLO BAZ" > baz
commit

#user A
update

Now if the "newly" added file, bar, in user A's wc is ignored then the
server will throw a new file (baz coming from B). When user A commits after
updating, the file "bar" will be added as well and we end up with two files
in the repository where it should have been only one file. I think that
files which are added AND copied should not be ignored.
What do you think guys?

One more thing, I think I might have solved an issue about copying on
updating described in this scenario:
       1.User A checks out /repos/trunk/proj containing foo.c
       2.User B checks out /repos/trunk/proj containing foo.c
       3.User A makes changes to foo.c
       4.User B renames foo.c to bar.c and makes some changes
       5.User B commits
       6.User A updates

Ben said that this scenario would if the deletetion of foo happens AFTER the
add of bar (when A does an update). Well, now it the deletion of foo happens
after the addition of bar if bar has a copyfrom that is (foo). So when at
step 6, A does an update, then the bar is merged with foo and then bar is
added and foo deleted.

PS
Ben, I'm coming out of the cave now! :-)

On Nov 15, 2007 8:04 PM, Ben Collins-Sussman <sussman@red-bean.com> wrote:

> On Nov 15, 2007 11:54 AM, Tor Ringstad <torhr@pvv.org> wrote:
>
> > So the bottom line still seems to be that nobody has ever seen a
> > scenario similar to that described in the release note, that is,
> > involving a move, where the local changes are handled correctly...
>
> Look at the update_copied_from_replaced_and_changed test... it
> involves 2 moves.
>
>
> >
> > (Nice poem on r26957, by the way :)
>
> Oh noes, I've been discovered!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
Received on Thu Dec 6 11:15:26 2007

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.