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

Re: Restore of directory from repository does not remove local, unversioned file

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 1 Oct 2008 23:37:15 -0500

On Oct 1, 2008, at 4:03 PM, Langel, Frank wrote:

> 1. We are using svn 1.4 and checked in a directory ./test1 using
>
> svn copy <path> <path>/tags/1.0/
>
> to tag this directory
>
> 2. On the working copy, I am now adding a file ./test1/
> notwanted.txt to the directory
>
> 3. I am now trying to revert back the directory to it's previous
> state, i.e. without the notwanted.txt file in the ./test1/ directory
>
> I tried
> - svn update ./td1

What is ./td1?

> - svn checkout <path>/tags/1.0/
> - svn cp <path>/tags/1.0/test1 ./test1

You don't want either of those...

> without luck. Any idea?
>
> Why doesn't SVN remove the unversioned notwanted.txt file ?

Subversion will not remove unversioned files; that would be data
loss, which Subversion is specifically designed to prevent.

I think what you should do is run "svn status" to see which files are
unversioned, and if you do not want them anymore, then remove them.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-02 06:37:39 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.