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

Re: checking out to dir with existing files

From: David Marshall <dmarshall_at_gmail.com>
Date: 2005-05-11 11:06:22 CEST

On 5/4/05, Timothy Smith <timothy@open-networks.net> wrote:
> when i attempt to checkout to a working dir which already contains a
> copy of my project ( no tunder version control) i get this error -:
>
> svn: Failed to add file 'ssleay32.dll': object of the same name already
> exists
>
> now i understand why this is, but is there a way i can get the svn
> client to just ignore them, put the files under version control (if they
> are the same) and let everyone play nicely?
>

I don't know of any way to do what you wanted exactly, but I do this
sort of thing as I add directories on our server to Subversion.

Supposing I have a directory foo/ into which I want to get a WC for
.../foo/trunk without losing the files in foo/ that may be different,

mv foo foo.old
svn co .../foo/trunk foo
cp -riuv foo.old/* foo # only copy newer files and ask permission
before overwriting anything

YMMV, depending on a lot of specifics. My little recipe may need
tweaking for your exact circumstances.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 11 11:10:00 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.