[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: Fabian Cenedese <Cenedese_at_indel.ch>
Date: 2005-11-28 13:09:55 CET

>>I thought Id follow Marks 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?

cvs is the other way round, default is to keep the file and only rm it from
the filesystem with the parameter --force. To not break existing svn
behaviour we could add a parameter to keep the file upon rm, so like

$ svn --keeplocal (or -k or something more general) delete foo
$ svn commit ...

...and foo is still available.

bye Fabi

---------------------------------------------------------------------
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:17:38 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.