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

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

From: Peter Pommelich <PetePomm_at_web.de>
Date: Tue, 9 Aug 2011 11:16:45 +0200 (CEST)

Hi everbody,

I wrote to this mailing list a few days ago (I had some questions regarding how to migrate a repository). I'm still working in this...

The current problem I have is this:
I have to modify some paths (trunk/meta/trunk => trunk) in the dump file created with 'svnadmin dump'. I did the modification of 'Node-path' and 'Node-copyfrom-path' with sed. But after loading this modified dump file into the new repo, I got a checksum error for a jar file. If I load the unmodified dump file into the new repository everything is fine.

This is the way I created the dump file and modified the paths:
>> cat DumpCompleteSource.dump | svndumpfilter include  trunk/meta/trunk/_build trunk/meta/trunk/_client-libs > Dump_only_trunk.dump
>> cat Dump_only_trunk.dump | sed -e 's,^Node-path: trunk/meta/,Node-path: ,' > Dump_only_trunk_NodePathFixed.dump
>> cat Dump_only_trunk_NodePathFixed.dump | sed -e 's,^Node-copyfrom-path: trunk/meta/,Node-copyfrom-path: ,' > Dump_only_trunk_NodePathFixed_NodeCopyFromFixed.dump

I also tried to concatenate all commands using pipes and omitting creating files, but I still get the checksum .

Does anyone know why the usage of sed mess the checksums/content up? For each substitution I used the beginning-of-ile marker '^' so there should'nt be any content modified right?
Maybe this is also important: the OS is SunOS 5.10

Kind regards and thanks (again),
pete
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
Received on 2011-08-09 11:17:43 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.