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

Re: How Subversion drove me to shoot myself in the foot.

From: Ron <lists_at_rzweb.com>
Date: 2006-04-18 22:09:27 CEST

> Does anyone else think that the strategy of immediately removing
> (deleting) files that are added but not committed is not consistent with
> the idea that svn delete will not remove unversioned or modified items?
>
> I think it makes more sense for "svn delete" to behave like "svn revert"
> in the case of added but not committed files, because obviously it is an
> operation that WILL lose unversioned data.

Yes, I agree. This drives me a little crazy. When I svn delete a file,
I would rather it remained, but was just flagged for deletion, and only
removed when the commit happened.

Although, sometimes it is nice that the file is removed. For example,
if you remove a file and forget to update the makefile as well, at least
the makefile fails before you've commit, thinking everything is OK.

But all in all, having them delete immediately cause *me* more headaches
than if they didn't.

There are also some issues with doing svn delete on a directory that
contains unrevisioned files, in that it just fails. I'd rather it
deleted it from the repo, but left it on my machine if there were
unrevisions files in it.

Ron

Scott Palmer wrote:
>
> On 18-Apr-06, at 12:50 PM, Kevin Galligan wrote:
>
>> I think the contention was that 'svn delete' would not delete the
>> actual files from the directory...
>>
>> "the book reassured me quite nicely that "svn delete" never actually
>> deletes anything"
>>
>> which is, of course, not true...
>>
>> "Items specified by /|PATH|/ are scheduled for deletion upon the next
>> commit. *Files (and directories that have not been committed) are
>> immediately removed from the working copy.* The command will not
>> remove any unversioned or modified items; use the |--force| switch to
>> override this behavior."
>>
>
> Does anyone else think that the strategy of immediately removing
> (deleting) files that are added but not committed is not consistent with
> the idea that svn delete will not remove unversioned or modified items?
>
> I think it makes more sense for "svn delete" to behave like "svn revert"
> in the case of added but not committed files, because obviously it is an
> operation that WILL lose unversioned data.
>
> Scott
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 18 22:10:50 2006

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.