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

Re: Limitation of Undoing: Dataloss

From: B Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Mon, 29 Dec 2008 13:26:14 +0100

On Mon, Dec 29, 2008 at 11:09 AM, Jan Hendrik <list.jan.hendrik_at_gmail.com>wrote:

> Hi,
>
> just before Christmas I asked for confirmation of this behaviour, but
> received no answer, due to the Holidays and my circumstantial
> explanation. (And without any reply I cannot build on that post, but
> have to start a new thread as Google censors all own postings.)
> Meanwhile I worked it out on a test repository and it turned out
> even worse than supposed:
>
> create repository;
> checkout working copy;
> populate wc with files file1.txt, file2.txt, file3.txt, each with some
> content;
> add & commit above files (rev.1);
> add folder newfolder to wc & commit (rev.2);
> svn move file1.txt, file2.txt, file3.txt to newfolder;
> svn commit (rev.3);
> modify content of newfolder/file1.txt, newfolder/file2.txt,
> newfolder/file3.txt;
> commit (rev.4);
> svn merge -r 3:2;
>
> =>
>
> file1.txt, file2.txt, file3.txt are resurrected fine in their state before
> the move, newfolder/file1.txt, newfolder/file2.txt, newfolder/file3.txt
> are removed.
>
> BUT all changes done on the files while in newfolder are gone, too
> => DATALOSS!
>
> I suppose I could now merge rev. 4 onto the resurrected files
> somehow. But what a tedious task if there are a hundred files
> involved, affected by many revisions between rename/move and
> undoing rename/move.
>
> Am I missing something here or should there be a warning that
> undoing a rename/move undoes ALL other modifications on the
> respective files since?
>
>
What you're observing is a "tree conflict" of some flavor. Improved
handling of tree conflicts is currently being worked on. There's
documentation of the issues in the subversion repository:

http://svn.collab.net/repos/svn/trunk/notes/tree-conflicts

Google found me a presentation from Stefan Sperling which introduces the
topic using subversion and mercurial as examples:

http://www.inf.fu-berlin.de/inst/ag-se/teaching/S-BSE/112_sperling_tree-conflict-handling.pdf

// Ben Smith-Mannschott

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=994981

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-29 13:27:16 CET

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.