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

Re: Convert cvs working copy to svn working copy?

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2005-08-19 08:09:34 CEST

On Thursday 18 August 2005 18:12, Janelle Janish wrote:

> Does Subversion have a way to convert a cvs working copy to a svn
> working copy?

When I convert my working copies, and do not want to loose files that are not
in the repository, I do it in two different ways:

1) if I am the only/main one who works on the project, I

a) create a fresh repository,
b) check out revision 0 (it has no files) into my old working copy,
c) add all unknown files and commit (this is instead of import).

After this I continue working in my old working copy.

2) if the repository is there already, I would

a) check out the latest revision into a fresh directory
b) rsync -av old-WC/ new-fresh-WC/

you can add options to rsync to ignore existing files, or to ignore some
files, or to update only newer files (see man rsync)

After this I continue to work in my new-fresh-WC/, and after some time delete
old WC.

> I am transitioning our code repository from CVS to
> Subversion, and don't wish to require all working copies to be
> re-checked out.

I guess this is unavoidable. Why is this a problem? WC needs to be updated
from time to time anyway. Sure, initial checkout will be a bit longer than
update, but once during the tool change one can wait a little bit. Also,
people will learn how to check out initial working copy ;)

Hope this helps,

-- 
Saulius Gražulis
Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Fri Aug 19 08:21:30 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.