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

Re: dropping support for old (format 1) working copies

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-11-08 02:42:31 CET

Colin Watson <cjwatson@flatline.org.uk> writes:

> On Fri, Nov 07, 2003 at 05:31:19PM -0000, Max Bowsher wrote:
>> Colin Watson wrote:
>> > Oof.
>> >
>> > [cjwatson@riva ~]$ cat .svn/format
>> > 1
>> >
>> > Trying to check out my home directory again is going to give me a
>> > serious headache
>> Why? Because its big, or because you can't delete and re-create your home
>> dir?
> Because not all of it's checked in and there are several necessarily
> uncommitted changes there. Also I need to be extremely careful about
> what I remove; it's not as if I can just do 'rm -rf ~'.

If you do not have lots uncommitted property changes, then you could
use GNU tar as follows:

  $ cd /home
  $ tar cfz philip.tgz --exclude .svn philip/
  $ mv philip/ philip.old/ # or rm if you are confident!
  $ svn checkout $URL philip/
  $ tar xfz philip.tgz
  $ rm -rf philip.old/

This will preserve the most of the state of all your versioned and
unversioned files and directories (versioned directory timestamps will
change), but will lose any uncommitted property changes. The new
working copy will have a lot of "broken" text and property timestamps,
so things like "svn status" will run slowly. These can be "repaired"
using a HEAD client as follows

  $ SVN_EDITOR=/bin/false svn ci philip/

which is a commit that will abort when the log message editor fails.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 8 02:43:08 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.