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

svndump filter: How to pretend files were added to trunk

From: Mathieu Malaterre <mathieu.malaterre_at_gmail.com>
Date: Wed, 13 Oct 2010 15:24:23 +0200

Hi there !

  I am trying to cleanup my SVN history. Back in the beginning of the
project I started using SVN without the standard layout (trunk,
branches, tags parent dir). Now using svndumpfilter, I would like to
pretend that initial history [r1-1097] did happen within the trunk
directory. For that I use svnadmin dump and then play with node-path
using sed:

cat initial.dump | sed -e 's,^Node-path: Applications,Node-path:
trunk/Applications,' -e 's,^Node-copyfrom-path:
Applications,Node-copyfrom-path: trunk/Applications,' > clean.dump

  Since trunk directory did not exist I tried doing:

svnadmin create clean
svn mkdir -m"Initial project roots" file://`pwd`/clean/trunk
svnadmin load --quiet --ignore-uuid clean < clean.dump

  However it fails with:

svnadmin: File not found: transaction '835-n7', path 'trunk/Applications'

Now if do:

svnadmin create clean
svn mkdir -m"Initial project roots" file://`pwd`/clean/trunk
svn mkdir -m"Initial project roots" file://`pwd`/clean/trunk/Applications
svnadmin load --quiet --ignore-uuid clean < clean.dump

It fails with:

svnadmin: File already exists: filesystem 'clean/db', transaction
'184-55', path 'trunk/Applications'

Am I missing something ? Is there a tool to re-root a bunch of
files/directories that were not initially created within a 'trunk' dir
?

Thanks !

-- 
Mathieu
Received on 2010-10-13 15:25:26 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.