for munging ICU's svndump
-
usage:
svnadmin create /repos/icu2 svnadmin dump /repos/icu | perl svn-dump-reloc.pl icureloc.json | svnadmin load /repos/icu2 # now convert to git, etc
-
tags generated with:
$ svn list ^/icu/tags ^/icu4j/tags | sort | uniq | sed -e 's%.*% "/tags/&",%'
-
config file format
-
map:
this is a series of regexes from old to new. they will be applied to all paths.
{ "map": [ [ "^(icu4j|tools)\\/(trunk)$", "\"$2\\/$1\""], [ "^(icu)\\/(trunk)\\/(.+)$", "\"$2\\/icu4c\\/$3\""] ] }
-
r1:
r1 is special and can have some
mkdir
lines that will be created at r1 and will be protected against re-creation.{ "r1": { "mkdir": [ "/trunk", "/branches", "/tags" ] } }
In theory the following rules could also be a part of r1, but thi has not been teted.
-
r*:
there can be rules for each revision. The two supported rules are:map-action
- map one action to another. The following example mapsdelete
tochange
for two specified paths. (I have only tested with one path, but it should work™).
"map-action": { "delete": { "icu/trunk": "change", "icu/tags": "change" } }
map-Node-path
- map one Node-path to another. This maps/icu/trunk
to/ignore-me
.
"map-Node-path": { "icu/trunk": "ignore-me" }
-
Copyright © 2016-2024 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the United States and other countries.
The project is released under LICENSE.
A CLA is required to contribute to this project - please refer to the CONTRIBUTING.md file (or start a Pull Request) for more information.