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

RE: Best way to "un-version control" a file?

From: Tony Sweeney <tsweeney_at_omnifone.com>
Date: Thu, 23 Sep 2010 12:53:04 +0100

 

> -----Original Message-----
> From: Nico Kadel-Garcia [mailto:nkadel_at_gmail.com]
> Sent: 23 September 2010 12:40
> To: David Huang
> Cc: Chris Albertson; users_at_subversion.apache.org
> Subject: Re: Best way to "un-version control" a file?
>
> On Thu, Sep 23, 2010 at 12:43 AM, David Huang
> <khym_at_azeotrope.org> wrote:
> >
> > On Sep 22, 2010, at 8:21 PM, Chris Albertson wrote:
> >> But, I did not think until now that I should have excluded
> files such
> >> as core files and logs and autoconf's cache from version
> controls.  
> >> I now know how to a global ignore and a ignore foe one
> directory but
> >> how to remove these files from version control once they
> are already
> >> there.     Is "svn rm" the best why?  But that will remove
> them from
> >> the working directory too.  I don't want that.
> >
> > svn rm --keep-local filename
>
> Which is thoughtful, but does *NOT* get old versions of the
> file out of the repository. Unfortunately, that's been
> requested before, and has never gotten into working code that
> I can find. The idea is called "obliterate", and it goes
> against the basic design ideas of the creators of Subvresion:
> a source control is supposed to keep all your source, not
> allow obliteration whether accidental or deliberate by users.

Users, no; administrators, yes. At the time Perforce added this it was, if I recall correctly, their number one feature request.

>
> Obliterating it, as things stand, would require taking the
> upstream repo offline, doing an "svnadmin dump |
> svndumpfilter [arguments] | svnadmin load" set of operations,
> and it's awkward.

See above. This (well, the equivalent) was what you had to do in Perforce before they implemented 'obliterate'.

>
> >> Next is these a way to make the ignore property for a
> directory apply
> >> to all sub dirs recursively.   The next project I want to
> move to svn
> >> is much larger and has many nested directories
> >
> > svn propset --recursive svn:ignore ignorepattern .
>
> Also, the very nice "TortoiseSVN" gui is fabulous for doing
> just such operations. It's my only excuse these days for
> doing any Windows work with Subversion: the tool works really well.
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit
> http://www.messagelabs.com/email
> ______________________________________________________________________
>
Received on 2010-09-23 13:53:42 CEST

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.