I found this way to unroll the changes:
Code: Select all
:local history [/system/history/print detail as-value where floating-undo=yes]
:local historylength [:len $history]
:while ($historylength > 0) do={
/undo
:set $historylength ($historylength - 1)
}
There is a direct way? A more robust way maybe?
There is way to commit changes instead?
Context: viewtopic.php?t=201440