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

Re: Rename: data loss

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-09-08 14:34:15 CEST

"Sindbad the Seafarer" <sindbad.the.seafarer@gmx.net> writes:

> Now I only wonder what would have happened if wc1/file1 with the
> added paragraph had been already committed before
> wc2/renamedfile1? Would then the added paragraph in file1 had
> been merged into renamedfile1? (I simply have nothing around
> today to just try it.)

Well, the person doing the name would have a "copy" and "delete"
scheduled in the their working copy. When they try to commit, the
'delete' of file1 would fail, because their copy would be officially
out-of-date (it doesn't have the added paragraph).

So in response, the 2nd user runs 'svn up'. The receive a patch to
the schedule-delete file. At this point, they may have second
thoughts about committing. If they commit the "deletion and copy",
they'll be committing the deletion of the "new" file1 text, whereas
the copy will still be of the "old" file1. So yah, a commit would
result in the loss of the new paragraph.

Again, in an ideal situation, 'svn up' should add the paragraph not to
the schedule-delete file, but to the schedule-copy one. But that
won't happen until we have atomic move operations someday.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 8 14:35:33 2003

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.