The default reposurgeon has a version 4.3 which does not provide sufficient
functionality.
Please compile the latest reposurgeon from
source as shown in
.github/workflows/install_reposurgeon.yml.
|
Note
|
Thank you Eric S. Raymond for the fantastic reposurgeon!
|
-
Clone this repo, e.g. to
./svn-github-convert -
Clone the https://github.com/ietf-ribose/trac-svn-db/ repo to a level up, e.g.
./trac-svn-db(remember this is a private repo) -
Change directory to the target repo name, e.g.
./svn-github-convert/xml2rfc-bibxml -
Within this directory run:
ln -s ../../trac-svn-db/svn/xml2rfc xml2rfc-bibxml-mirror
-
Notice that the
xml2rfc-*andvocabulary…target repositories are all created from thexml2rfcSVN repository
-
This step uses the *.lift files which are custom reposurgeon conversion
scripts.
-
Run
maketo createxml2rfc-bibxml.{svn,fo,map}etc. -
The resulting Git repository will be at
xml2rfc-bibxml-git.
In order to develop the *.lift files we use the reposurgeon console
functionality.
After preparation, simply run reposurgeon from shell.
e.g.
datatracker $ reposurgeon
reposurgeon%
reposurgeon% read --branchify=trunk:attic/*:branch/*/*:personal/*/*:sprint/*/*:tags/*:tags/dev/*:* <datatracker.svn
... processing ...
reposurgeon% names
branch refs/heads/master
branch refs/heads/branch/2.00/ietf
branch refs/heads/branch/2.00/static
branch refs/heads/branch/2.00/test
...
tag 2.00-root
tag emptycommit-987
tag sprint/73/magnus-root
tag branch/iesg-tracker/south-root
...The set of commands used here can be stored into a datatracker.lift script for
the single-step conversion process.