I have made a number of updates to the Merge-ZTreeHistory.ps1 script.
Change log
Added: Powershell command line processing and onlne help, so callers of the script will have to change
Added: $g_hHistoryTypes to document the types
Added: -LogLevel, when set to none and some other performance tweaks, now runs in 2.1 seconds. Plus in some setups in 1.2s, so not going to get better than that in a script.
Change: Updates to follow powershell ways of doing things
Change: Some logging tweaks to improve performance
Fixed: Added values now working again (how did I manage to break that and not notice :-( )
http://www.ztw3.com/upfile/mergeztreehistory.zip
Please report issues so that I can fix them.
Ben