You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by James Trickel <jt...@dolphtech.com> on 2007/04/30 16:57:48 UTC
svndumpfilter questions
I am trying to use svndumpfilter in the following way:
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
With svndumpfilter I would like to create a new repository that does not
contain component3
# svndumpfilter exclude project/A/component3 < original_dump > without3_dump
Watching the output I see that all the revisions are being used that
correspond to component3.
Revision 2987 committed as 2987.
Revision 2988 committed as 2988.
and naturally the dump files are near identical size. I did notice that
the original_dump file contains Node-Paths without leading '/' and
svndumpfilter will say "excluding '/project/A/component3'" rather than
"project/A/component3" as in the the original_dump file.
Could anyone shed some light on what I might possibly be doing wrong?
Using:
svn, version 1.4.2 (r22196) compiled Mar 14 2007, 20:55:55
svndumpfilter, version 1.4.2 (r22196) compiled Mar 14 2007, 20:55:55
CentOS v 5
Thanks in advance,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re[2]: svndumpfilter questions
Posted by Ingo Schmidt <li...@der-ingo.de>.
Hi James!
> 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.
You are right, this seems a bit stupid. However, I tried on a test
repo and it seems like it is just printing it that way. No matter how
I used it, it did exclude the wanted path in both cases.
But I use v1.3.1. Maybe something changed?
svndumpfilter will actually display in the end what it dropped. Does
it tell you that it did drop anything?
By the way, this:
Revision 2987 committed as 2987.
Revision 2988 committed as 2988.
doesn't mean that svndumpfilter did not drop anything! It only clears
out the node, but still leaves the revision in, so this is
the normal default case! If you really want to wipe out and renumber
the dropped revisions, use the appropriate switches, e.g.:
svndumpfilter --drop-empty-revs --renumber-revs exclude /projectA/subcon/component3 < original > without3
Cheers, Ingo =;->
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svndumpfilter questions
Posted by James Trickel <jt...@dolphtech.com>.
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
Re: svndumpfilter questions
Posted by Ingo Schmidt <li...@der-ingo.de>.
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
?
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 -----------------
Cheers, Ingo =;->
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org