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

Re: [Fwd: Re: How to remove a versioned file from version control without deleting it.]

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-28 12:58:28 CET

On Nov 28, 2005, at 11:38, Hendrik Maryns wrote:

> I thought I´d follow Mark´s advice below and throw the question in
> here: Why oh why is it impossible to remove a file from version
> control without deleting it in the working copy?
>
> I know one can always regenerate it from a previous revision, it
> would just be a nice feature.

No need to regenerate from a previous revision:

$ cp -p foo foo.keep
$ svn rm foo
$ svn propset svn:ignore foo .
$ mv foo.keep foo

$ svn ci -m "Removing foo from version control"

You could certainly wrap the first four steps into a shell script if
it's something you expect to want to do often.

If it were added to the Subversion client, what would the command be
called?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 28 13:00:53 2005

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.