ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] Multiple instance history merging   [ZEP]

By: Ben Kent       
Date: Apr 14,2019 at 11:48
In Response to: [ZEP] Multiple instance history merging (Peter Shute)

> I tried an experiment. Saved a copy of ztw.hst, started ztree, changed
> the filter, exited, combined the new and old ztw.hst files, changed the
> filter, exited.
>
> The new ztw.hst now has 1541 entries vs 772 before. It's sorted in
> order of the entry types, but with twice as many of each as before. The
> zt= line only occurs once, at the bottom like normal. I'm not sure which
> other 2 entries vanished.
>
> The limit for marked entries is 64, but I don't think it checks when
> it you add them this way. It just doesn't let you use some.
>
> My histories are duplicated, so this is impractical, but it shows that
> it's not necessary to worry about making sure zt= is last when you
> merge.
>
> > Have you tested the script
> > http://www.ztw3.com/upfile/mergeztreehistory.zip ?
>
> No, this is a feature I think would make ztree a lot nicer to work with
> for not a huge programming effort, but not so painful that I really need
> a workaround.

Peter

Not seeing duplicates here.
I was reading the command line parameters in the wrong order, which is probably the cause of your missing items issue, fixed now. I was testing using the internal defaults.
Also re-wrote the merge function now much faster, probably now as quick as you could get in a scripting language.
Plus a number of other tidy ups.

New version uploaded, same URL.


If you are specifying the files on the command line, they need to be in this order
Active i.e. ZTW.HST
Backup, something like ZTW_Backup_%random%.HST so each instance gets it's own backup
Principal i.e. ZTW_Principal.HST
Output ZTW_Principal.HST, unless you are testing, needs to be the same as Principal


Ben

138 views      
 

Messages in this Thread

 
94,477 Postings in 11,922 Threads, 348 registered users, 9 users online (0 registered, 9 guests)
Index | Admin contact |   Forum Time: Oct 18, 2019 - 12:17 am EDT  |  Hits:28,770,220  (56 Today )
RSS Feed