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

Re: Scripting an svn:externals change

From: BRM <bm_witness_at_yahoo.com>
Date: Fri, 3 Sep 2010 06:36:05 -0700 (PDT)

----- Original Message ----

> From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
> > $ cat Example1.dump | sed
> > 's/file:\/\/\/svnTest\/Example1/file:\/\/\/svnTest\/Example2/' >
> > Example1-edited.dump
> Do not use sed to edit a dumpfile. Use a tool designed for the task, like
>svndumptool.
> http://svn.borg.ch/svndumptool/

Why? B/c it might change data in files too? That's actually something I want
done.
My prime repository has some scripts in it that store the repository information
for auto-checkouts as part of build environments, and I want those changed too -
not just the svn:externals.

Or would sed 'break' the dump file format? svndumptool does look useful to
verify that sed did exactly what I wanted - standard diff won't work well on a
2.1 GB dumpfile.
 
> > 5. Load the edited dump into a new repository (Example2)
> >
> > $ cd /svnTest
> > $ svnadmin create Example2
> > $ svnadmin load Example2 < Example1-edited.dump
> Because this repository is now different than it was before (the history has
>been edited), you must give the new repository a new UUID.
> svnadmin load --ignore-uuid Example2 < Example1-edited.dump

I wouldn't say 'must' but 'should' - as in 'highly recommended'.

> Since the UUID has changed, everyone must check out new working copies; it is
>not possible to update or switch existing working copies to this new changed
>repository.

Or I could just ignore the history, and just go back to my original question of
changing the values.

As I said, I need to make this as seamless as possible for everyone - preferably
doing an 'svn relocate'/'svn update' on the working copies.

Question: If I checked them out again would the client realize that I have a
series of files locked and retain the locks on the new working copy? (That would
be a PITA to track down if it didn't.)

TIA,

Ben
Received on 2010-09-03 15:36:44 CEST

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.