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

Re: svndumpfilter questions

From: James Trickel <jtrickel_at_dolphtech.com>
Date: 2007-04-30 19:30:47 CEST

Ingo Schmidt wrote:
> Hi James!
>
>
>> repo:
>> /
>> /projectA/subcon/component1
>> /projectA/subcon/component1/branches
>> /projectA/subcon/component1/tags
>> /projectA/subcon/component2
>> /projectA/subcon/component2/branches
>> /projectA/subcon/component2/tags
>> /projectA/subcon/component3
>> /project/B
>>
>
>
>> # svndumpfilter exclude project/A/component3 < original_dump > without3_dump
>>
>
> Is this just a typo here? In the above repo layout I don't see
> "project/A/component3".
> So should it not have been
> # svndumpfilter exclude projectA/subcon/component3 < original_dump > without3_dump
> ?
>
>
Oops, yeah that was a typo.
> Other than that, here a quote from the svn book:
>
> ---------------- snip -----------------
> While svndumpfilter can be very useful, and a huge timesaver, there
> are unfortunately a couple of gotchas. First, this utility is overly
> sensitive to path semantics. Pay attention to whether paths in your
> dump file are specified with or without leading slashes. You'll want
> to look at the Node-path and Node-copyfrom-path headers.
>
> …
> Node-path: spreadsheet/Makefile
> …
>
> If the paths have leading slashes, you should include leading slashes
> in the paths you pass to svndumpfilter include and svndumpfilter
> exclude (and if they don't, you shouldn't). Further, if your dump file
> has an inconsistent usage of leading slashes for some reason, you
> should probably normalize those paths so they all have, or lack,
> leading slashes.
> ---------------- snip -----------------
>
>
Yes, I read that too. So, what I am not understanding is the
svndumpfilter gotcha here.
original_dump:
Node-path: projectA/subcon/component3

So, with svndumpfilter I use "projectA/subcon/component3", but the first
couple of lines from svndumpfilter are:
Excluding prefixes:
   '/projectA/subcon/component3'

If you notice, svndumpfilter is placing a leading '/' to the prefix path
I am using. So, does this mean that I have to replace all of my
Node-path's to have the leading '/'? Does not make sense that I have to
do that.

-James

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 30 19:31:30 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.