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

Re: Checksum failed after using sed to modify paths in dump file in spite of using ^

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Wed, 10 Aug 2011 02:46:53 -0500

On Aug 10, 2011, at 02:11, Peter Pommelich wrote:

>> I used svndumpfilter to extract only the wanted folders from the original 'big' dump file.
>>
>> I tried using the svndumptool but somehow I don't get it:
>>
>> svndumptool.py transform-prop Node-path "^Node-path: trunk/meta/" "Node-path: " DumpFinal.dump DumpFinal_NPFixed.dump
>>
>> does not change anything.
>>
>> The help usage is: svndumptool.py transform-prop propname regex replace source destination
>>
>> Does anyone has an idea?

transform-prop is for transforming versioned properties; Node-path is not a versioned property; it is an internal detail of the dumpfile format that you don't need to concern yourself with.

I suggest you read the section "Moving things around" under "Some tips" in the svndumptool readme:

http://svn.borg.ch/svndumptool/0.6.1/README.txt

On Aug 10, 2011, at 02:40, Peter Pommelich wrote:

> I just used perl for editing the dump file (perl -e "s/^Node-path: trunk\/meta\//Node-path: /g;" -pi.bak <filename>) and it just worked.
>
> I hope that I do not need to nbother you again with that :-)

Ok... But using perl is no better than using sed IMHO. perl, like sed, is not designed to deal with dumpfiles; svndumptool is, and knows details of the format that you might not.
Received on 2011-08-10 10:14:07 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.