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

Re: Quick Checkout

From: Jonathan Wheelhouse <wheelhouse_at_pacific.net.au>
Date: 2004-06-10 15:13:29 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> On Wed, 2004-06-09 at 08:23, Jonathan Wheelhouse wrote:
>
>> ie. Will leave directories and files that are the same between my
>> working copy and the repository but update everything else so that
>> there's no difference between the repository and my working copy?
>
> ?? You've just defined the 'svn update' command.

OK, what I want to do is have a quicker version of 'rm -rf dir; svn co
URL dir' . I thought I could do that via svn revert|update etc. but
the problem is that the latter commands do not leave the working copy
looking exactly like the repository.

Let me try to explain with an example.

Assume the following is a very large project with lots of files (it's
not; it's my own home project but I do have a large work project); the
checkout takes some time.

~/DEV/games$ svn co file:///home/jonathan/svn/jody/trunk jody2

~/DEV/games$ cd jody2

~/DEV/games/jody2$ touch a.txt

~/DEV/games/jody2$ touch b.txt

~/DEV/games/jody2$ vi configure.ac -> change something in the file

~/DEV/games/jody2$ rm -rf src -> remove a dir

~/DEV/games/jody2$ svn st -u -> shows a bunch of changes
...
       * src/jody.scm
! * ? src
? a.txt
? b.txt
M 5 configure.ac
Status against revision: 5

~/DEV/games/jody2$ svn up
...
A src/img/Makefile
A src/Makefile
Updated to revision 5.

BUT

~/DEV/games/jody2$ svn st -u
? a.txt
? b.txt
M 5 configure.ac
Status against revision: 5

So you see the working copy is not exactly the same as the repository;
it has added files and a changed file.

What I wanted was to speed up the
~/DEV/games$ rm -rf jody2
~/DEV/games$ svn co file:///home/jonathan/svn/jody/trunk jody2

I wondered if it would be quicker to tell Subversion to ignore
directories|files that are the same between the repository and the
working copy but update everything else so that the working copy
looked _exactly_ like the repository.

But only 'rm -rf ... svn co ...' makes an exact copy of the
repository and it's slow for this large project (yes, maybe it's time
to think of splitting it up).

Jonathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 10 15:24:26 2004

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.