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

[RFC] svn rm --keep-in-wc option

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2006-12-27 13:06:14 CET

Hi,
Some time ago there were several requests about ability remove
file/directory from Subversion, while keep it in working copy:
http://svn.haxx.se/dev/archive-2005-09/0786.shtml
http://svn.haxx.se/users/archive-2004-08/0628.shtml

I'm ready to implement this. There were proposal from Max Bowsher to
implement this using --keep-in-wc option to svn rm and I like this way.
For me it's much better than reinventing new command such svn unversion.

Here is some use cases how this option will work:
1. Deleting committed file
$ touch foo; svn add foo
$ svn ci
$ svn rm --keep-in-wc foo
$ ls foo
foo
$ svn st
D foo
$ svn ci
Deleted foo
$ svn st
? foo

2. Deleting committed directory
$ mkdir dir; svn add dir
A dir
$ svn ci
$ svn rm --kepp-in-wc dir
D dir
$ svn st
D dir
$ ls dir
dir
$ svn ci
Deleted dir
$ svn st
? dir

Deleting of uncommitted item is the same as svn revert:
3. Deleting uncommitted file
$ touch foo; svn add foo
A foo
$ sv rm --keep-in-wc foo
$ ls foo
foo
$ svn st
? foo

4. Deleting uncommited directory
$ mkdir dir; svn add dir
A dir
$ svn rm --keep-in-wc dir
D dir
$ svn st
? dir

Technical issues
================
Implementing this option for directories will require working copy format
bump again :)

Comments? Objections?

-- 
Ivan Zhakov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 27 13:06:25 2006

This is an archived mail posted to the Subversion Dev mailing list.