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

Re: Possible bug delete and revert

From: John Peacock <jpeacock_at_rowman.com>
Date: 2006-12-18 17:53:51 CET

C. Michael Pilato wrote:
> This is a weird case, Ben. Revert is (mostly) about undoing local
> modifications to versioned files. The local modifications to versioned
> files in this case were the deletion of those files. That there's now
> another file in the spot of the deleted things is not itself a change to
> the versioned file set.

To [possibly] make this clearer, revert is doing two independent things:

1) undoing uncommitted modifications to versioned files;
2) undoing uncommitted modifications to versioned directories.

I think that the principle of least surprise should mandate that in case
#1, Subversion should blow away the local file and replace it with the
repository version without warning, since the file still exists in
modified form in the WC.

On the other hand, in case #2, if the file to be recreated already
exists, Subversion should error out, since the file is expected to be
missing from the WC, but it is found anyways.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 18 17:53:49 2006

This is an archived mail posted to the Subversion Dev mailing list.