I want to reorder a subversion repository; for this I use svnadmin dump, svnadmin load, svndumpfilter and sed.
For example, I want to "move" the following directory (in fact, it's much more but I do it step by step now):
project1/common/bib -> trunk/pub/common/bib
For this, I execute the following command on the exported dump file:
sed -i "s|Node-path: project1/common/bib|Node-path: trunk/pub/common/bib|g" repo.dump
sed -i "s|Node-copyfrom-path: project1/common/bib|Node-copyfrom-path: trunk/pub/common/bib|g" repo.dump
However, when I load this into a new/empty repository I get:
<<< Neue Transaktion basierend auf Originalrevision 64 gestartet
svnadmin: Datei nicht gefunden: Transaktion »63-1r«, Pfad »trunk/pub/common/bib«
* Füge Pfad hinzu: trunk/pub/common/bib ...
I don't why this does not work since I replace stupidly every entry!