[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: Colin Watson <cjwatson_at_flatline.org.uk>
Date: 2003-11-07 22:13:06 CET

On Fri, Nov 07, 2003 at 03:04:19PM -0600, Ben Collins-Sussman wrote:
> On Fri, 2003-11-07 at 14:50, Colin Watson wrote:
> > 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 ~'.
>
> $ cd wc
> $ svn diff wc > ~/mychanges.patch
> $ cd ..; rm -rf wc
> $ svn co http://.... new-wc
> $ cd new-wc
> $ patch -p0 < ~/mychanges.patch

This illustrates my point, I think. 'svn diff' will not record the
contents of unversioned files, so 'rm -rf ~' after saving its output is
a recipe for losing a great deal of data for me. Checking in one's home
directory necessarily involves a lot of unversioned files.

Looking at what Karl said, it appears that a procedure for converting a
wc in-place from version 1 to version 2 is as follows:

  set -e
  find .svn/props .svn/wcprops -type f -print | while read x; do
    mv "$x" "$x".svn-work
  done
  echo 2 > .svn/format

Is this correct? It'd be a lot easier than trying to perform a new
checkout for me.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 7 22:14:16 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.