On Thu, Dec 2, 2010 at 8:09 PM, Dmitriy Sintsov questpc@rambler.ru wrote:
- Brion Vibber brion@pobox.com [Thu, 2 Dec 2010 12:15:18 -0800]:
What is it that your system actually needs to be able to do this for?
Is
there an issue with loading up the previous text items, or are you trying to optimize storage on your end by not storing text twice when it
happened
to use the same text blob on the origin site?
I try to synchronize "recent changes" of two wiki sites via XML chunks (consequtive groups of 10 revisions), created by WikiExporter. It mostly works (however I am still haven't checked all throughly, what will happen if an revision with earlier timestamp is trying to import over revision with older timestamp?), however, ImportReporter::reportPage also creates an extra null revision for every revision page imported for "informational purposes" ("Imported by WikiSync" in my case). Unfortunately, at the next run of synchronization, such revision becomes a difference between sites and synchronization reports that sites are not equal (even though there really was no changes, except for informational null revision).
It sounds to me like what you need to do is recognize and skip your tool's edits, not null edits generally.
If these are all created by a particular user account, for instance, that should be pretty straightforward: compare the user ID value and skip the revision.
-- brion