#655449 subversion: svnadmin load should convert "Node-action: add" to "Node-action: change" where needed

Package:
subversion
Source:
subversion
Description:
Advanced version control system
Submitter:
Paul Wise
Date:
2021-09-22 04:41:25 UTC
Severity:
wishlist
#655449#5
Date:
2012-01-11 09:49:54 UTC
From:
To:
I am doing a conversion from svn to git. The repository I am converting
unfortunately started out with all the code in the top level and later
moved to trunk/tags/branches. To work around this I did some sed magick
on the dumpfile. Unfortunately svnadmin bombs out with the error below
at the point in the history when the files moved into trunk. It would be
much better if there were an option to ignore this issue and
automatically treat the transaction as if it used "Node-action: change"
instead of "Node-action: add" like it is now.

sed magick:

/^Node-path: /{/^Node-path: \(trunk\|tags\|branches\)/!s_^Node-path: _Node-path: trunk/_}

Error message:

<< Started new transaction, based on original revision 48
svnadmin: File already exists: filesystem '/home/pabs/devel/games/megaglest/tmp/svn-filtered/db', transaction '47-1b', path 'trunk/docs/AUTHORS'
     * adding path : trunk/docs/AUTHORS ...

Relevant part of the file:

Node-path: trunk/docs/AUTHORS
Node-kind: file
Node-action: add
Prop-content-length: 10
Text-content-length: 3798
Text-content-md5: 57dad7a3b3f713e82c1fb4d221a13475
Text-content-sha1: c1d39b7bacd670ac8663a322e3fe4a9433500d14
Content-length: 3808
...

#655449#14
Date:
2021-09-22 04:23:55 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com