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

Re: Directory under version control or not?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-03-27 16:32:42 CET

Jonatan wrote:

> I just ran into a situation where the working copy seems to get confused
> about whether a directory is scheduled for addition or not. 'svn st'
> says it isn't (at least that's how I understand the "?" symbol), but
> when you try to 'svn add' it you get an error message about it already
> being under version control. The following example illustrates this:
> svnadmin create repo
> svn co file://`pwd`/repo wc
> cd wc
> svn mkdir dir1
> cp -R dir1 dir2

You should be running 'svn cp', not 'cp'. By running normal 'cp',
you've duplicated the dir1 working copy. You now have a completely
independent working copy named 'dir2' that is unconnected to 'wc', even
though it's nested. So when you try to 'svn add dir2', the error is,
"no way, that's already a separate working copy."

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 27 16:34:11 2004

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