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

Re: Creating a working copy by copying .svn directories

From: Glen Fuller <glenmfuller_at_shaw.ca>
Date: 2006-01-18 09:05:29 CET

Vincent Starre wrote:
> Paul Koning wrote:
>
>> Glen> Hello, If one has 2 directory trees, identical except for the
>> Glen> fact that one of them is a subversion working copy, can the one
>> Glen> that is NOT a working copy be made into a working copy by
>> Glen> copying the .svn directories from the one that is?
>>
>> Yes, IF your directories are indeed truly identical. If they are not,
>> then bad things may happen.
>>
>> The safer solution is to create working directories the normal way,
>> via svn checkout.
>>
>> paul
>>
>>
>>
> "identical"? Hardly. Technically the .svn directories are the /only/
> things required of the working copies. Any missing files can be restored
> from the text-base using the "revert" command, any differing files will
> be detected in the normal way. There really is no downside that I can
> think of. Copying the .svn directories should be perfectly, 100% safe.
> I'd love to know your reasoning for thinking there would be any problem,
> though.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> __________ NOD32 1.1369 (20060117) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>

Thank you to all of you for all the advice you have given me.

The working copy directory was originally checked out from a repository
created from a duplicate of the non-working copy directory. (The purpose
was to do a test run of subversion on my own computer before proposing
adopting it into the company I work for.)

The non-working copy directory has been regularly 'cp -af'ed over the
w/c, and the changes committed to the repository, so I decided to go
ahead with copying the .svn directories.

There were only 2 issues I ran into. First, several files had been
deleted from the non-working-copy directory, so I got lots of '!' flags.
'svn del' took care of those. The other was that some unimportant test
files had '~' flags. That was able to be fixed by moving the files into
a different directory (which changed the ~'s to !'s), svn deleting them,
copying the files back from the directory they had been moved to and svn
adding them.

Hope this helps anyone else who might want to try this.

Sincerely,
G. Fuller

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 18 09:12:36 2006

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.