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

svndumpfilter

From: Ingo Schmidt <ich_at_der-ingo.de>
Date: 2007-03-06 17:04:13 CET

Hi everyone!

Let's say I do have a dumpfile of a repository with projects name like
that:

/ProjectA
/ProjectAB
/ProjectABC

Now I want to use svndumpfilter to split this up into 3 single
dumpfiles. One would think to do something like this:

cat dumpfile | svndumpfilter include ProjectA > project_a.dump
cat dumpfile | svndumpfilter include ProjectAB > project_ab.dump
cat dumpfile | svndumpfilter include ProjectABC > project_abc.dump

This, however, fails, because project_a.dump still contains all
projects. No wonder, the project names all start with the same string.

So I thought, mabye something like this would do the trick:
svndumpfilter include "ProjectA/"

But no, svndumpfilter simply ignores a trailing slash. It is picky
about leading slashes though (according to svn book), why does it not
accept trailing ones?

So my only way to achieve the splitting is really to write a big set
of exclude filters, so many, that only the desired project remains?

You may think, where the big deal is to write a set of excludes. Well,
the dumpfile I had to work on was really big, had tons of projects in
it and was auto created by a VSS->SVN conversion script. So it also
included some poject names I had no idea that they actually exist.

It just made the whole conversion process so much more complicated and
awkward.

Or do I not know svndumpfilter well enough and oversaw a simple
solution?

Cheers, Ingo =;->

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 6 17:04:39 2007

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.