[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: Tom Mornini <tmornini_at_infomania.com>
Date: 2006-04-18 22:16:19 CEST

You can svn revert a deleted file and get it back again.

I like the way it currently works. Makes it very natural
to remove files and 'see' the results.

I believe that you comment about the book saying it didn't
delete anything was referencing the repository, which, of
course, never deletes anything at all, regardless of what
you do.

--
-- Tom Mornini

On Apr 18, 2006, at 1:09 PM, Ron wrote:
> > 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."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 19 02:04:53 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.