Last modified: 2006-10-25 12:55:54 UTC
Extend this option, by adding the timestamp that changes behavior to: "Skips all but the last revision before the specified timestamp"
Created attachment 2532 [details] Patch to extend --filter:latest A patch to add such behavior.
Created attachment 2534 [details] Patch to extend --filter:latest (fixed) d'oh
Created attachment 2535 [details] Patch to extend --filter:latest fixed a serious bug.
It might be cleaner to instead have a 'before' or 'up to' filter that passes *all* revisions up to the given time. With the latest filter applied after it on the pipe, this would perform the desired function while also being more flexible.
Created attachment 2547 [details] mwdump -filter=before:<timestamp> Good suggestion. Filter rewritten. You can get the previous effect using these filters: --filter=latest --filter=before:<timestamp>
Created attachment 2551 [details] mwdump -filter=after:<timestamp> -filter=before:<timestamp> Added: -filter=after:<timestamp>. Enables to create possibly useful dumps for statistical analysis, etc. e.g.: --filter=after:2004-01-01T00:00:00Z --filter=before:2005-01-01T00:00:00Z
The two filter classes look identical except for one method call. :) Duplicated code always increases the risks of bugs being introduced when things are changed; it would be cleaner to avoid the duplicated code and make these on one base class.
Created attachment 2553 [details] mwdump -filter=after:<timestamp> -filter=before:<timestamp> Properly rewritten.
Looks good, thanks! Added in r17250.