Usage:

axp tree star-merge-undo [star-merge args and options] version

Infoline:

undo star-merge command leaving the original changes

Options:

-h, --helpdisplay this help message and exit
-R, --revision REVfetch REV first as tmp tree or new DIR
-d, --dir DIRcd to DIR first
--testdo not actually perform commands
-v, --verbosebe more verbose
-q, --quietbe quiet
-A, --archive ARCHIVEoverride tree archive
-r, --reference VERSIONset reference version
-N, --forwardpass the --forward option to 'patch'
-t, --three-wayperform a 3-way (diff3-style) merge
Undo changes done by the previous star-merge.  Note, it only
makes sense to issue star-merge-undo with the same parameters
as the actual last star-merge.  All other usages may produce
unpredictable results.

The --archive, --reference, --forward, --three-way and --dir
options as well as the version are passed to star-merge.

The potential errors in the intermediate process should be
handled properly.