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

Re: unversion a file

From: Robert Guthrie <rguthrie_at_pobox.com>
Date: 2004-08-11 19:39:41 CEST

If you haven't commited the original "svn add file" or whatever svn
command you used to put the file under version control, then you can
run "svn revert file". This will leave the original unversioned file
around while "unversioning it.

I'm pretty sure that's not what you wanted, but at least you can script
the command sequence below with something like :

------------------------
#!/bin/bash

mv $1 $1.$$
svn rm $1
svn commit $1 -m "Unversioning $1"
mv $1.$$ $1

------------------------

On Aug 11, 2004, at 11:11 AM, Shaun Batterton wrote:

> How can I unversion a file without removing it?
>
> Is the only way:
>
> % cp file /tmp/file
> % svn rm file
> % svn update
> % mv /tmp/file file
>
> I'd rather not move files if I don't have to.
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 11 19:40:34 2004

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.