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

Re: "svn update" fails to remove folder that still contains ignored files

From: Jan Hendrik <list.jan.hendrik_at_gmail.com>
Date: Fri, 20 Nov 2009 22:01:50 +0100

Concerning Re: "svn update" fails to remove fo
Markus Kuhn wrote on 20 Nov 2009, 15:10, at least in part:

> Daniel Shahaf wrote on 2009-11-20 14:06 UTC:
> > > Shouldn't svn update be at liberty to destroy any ignored files
> > > located in a folder that it is about to remove?
> >
> > We could add a switch to do that, perhaps.
>
> I would find such a switch very useful! It would help me to avoid a
> lot of manual cleanup of folders that should have vanished on their
> own.
>
> How about:
>
> --dont-preserve-ignored : do not preserve ignored files when
> (re)moving folders

I should say this is a very dangerous approach. While you may be
certain that none of the possibly ignored files (how about ignored
subfolders?) in a folder of your working copy you are about to
remove is of any value for you, another developer may have ignored
files of value for him which such a switch would remove on update
just the same, without his knowledge or even consent.

I can see the upside for e.g. editor-generated backup files, but I
also use ignore patterns for script drafts, ideas files, one-time
copies of versioned scripts customized for specific tasks etc. etc.

I wouldn't want any other person with commit rights to tamper with
these.

JH
---------------------------------------
Freedom quote:

     The government's view of the economy
     can be summed up in a few short phrases:
     If it moves, tax it. If it keeps moving, regulate it.
     And if it stops moving, subsidize it.
               -- Ronald Reagan

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

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-20 22:02:56 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.