The method comprises: associating a version history with the datum in each store, the version history identifying one or more stores that have modified the datum; comparing the version histories of the datum in the stores when the datum is synchronized between the stores; determining whether one of the version histories in one store is subordinate to the version history in another store when comparing the version histories; and replacing the datum having a subordinate version history with the datum having a dominant version history.
Here's Apple's background on the invention: "The embodiments described herein relate to the use of history information as an aid to synchronization systems and methods. In a very simple embodiment, history information is as little as generation count information that is retained on a per datum basis (datum, in this context, refers to a data item, or a collection of data items treated at a single synchronized item). The generation count information is synchronized when data is synchronized. The generation count may then be used during synchronization in order to gain a better understanding of the priority of datums in question.
"Other embodiments of the invention use more rich forms of history information regarding data items. In some embodiments, each data item stored on a device is associated with a state. The state changes (e.g., increments) each time the data item is changed. History information is maintained by associating the states with the changes to the data. In some embodiments, the history information is generic in nature so a single statement regarding history may associate with many data items that have experienced the same increment of history. For example, if a user creates 10 data items, some embodiments use only one state to record this history (e.g., user created data on device X). Therefore, each of the 10 created data items may be associated with the same state. If one of the 10 data items were to change, its state would change while the remaining nine items held the old state. The changed data item would then have a state associated with another history statement regarding the change (e.g. user edited data on device X). Furthermore, the first created state would remain an ancestor of the second created state. In this manner, a comparatively few states (and associated generic history statements) may be used to track changes in a very large population of data items.
"Assuming multiple devices exploiting the exemplified history maintenance for corresponding data sets, the devices may synchronize history information so that each device understands state information regarding data items on all devices (at least in a temporal sense due to the time of synchronization). Once history information is synchronized, it may serve as a basis for synchronizing data items because the ancestry of a data item may be determined through reference to the history information. For example, if data items conflict during synchronization, the conflict may be resolved by examining history information to determine if one data item is the ancestor or descendant (alternatively, dominant or subordinate) of the other data item.
"In other embodiments of the present disclosure using rich forms of history information, a version history is associated with the datum stored on a device or store. The version history has one or more entries, and each entry has an identifier and a value. The identifier identifies a store that has modified the datum, and the value indicates a number of modifications to the datum made by that store. When synchronizing the datum between stores, the version histories of the datum are compared to determine whether one version history is subordinate to another version history. The datum in the store having the subordinate version history is then replaced with the datum having the dominant version history. When compared, a conflict resolution by a user is required if the version histories are not identical, if the version histories do not have all the same identifiers, and if one version history does not contain all of the identifiers with equal or greater values of those same identifiers in the other version history."
Filed on June 21, 2005, the patent's inventors are Joe Holt, Gordie Freeman and Scott Forstall.