Method, system and computer program product for synchronizing source code repositories
AssigneeInternational Business Machines Corporation
InventorsEdward B. Boden, Daniel J. Gorey
Life of this patent
Estimating the term…
Abstract
A method for synchronizing an original code base (OCB) with a superset code base (SCB) which is a superset of the OCB. The method includes obtaining the OCB, obtaining the SCB and determining a file pair difference between the OCB and the SCB. An action table is accessed to retrieve actions based on a classification of each OCB file, a classification of each SCB file, and file pair difference. The actions are assembled into an action file. The actions in the action file are executed to synchronize the OCB and the SCB.
Claims10
A method for synchronizing an original code base (OCB) with a superset code base (SCB) which is a superset of the OCB, the method comprising:
- obtaining the OCB;
- obtaining the SCB;
- determining a file pair difference between the OCB and the SCB;
- accessing an action table to retrieve actions based on a classification of each OCB file, a classification of each SCB file, and file pair difference, wherein the actions in the action table identify a plurality of file operations and wherein each classification of the OCB and SCB files classifies the file as any one of:
- new, removed, updated, exists or not pending;
- assembling the actions into an action file;
- and
- executing the actions in the action file to synchronize the OCB and the SCB;
- wherein the action table includes cells indexed by the classification of the OCB file and the classification of the SCB file, each cell includes a plurality of actions;
- wherein retrieving actions includes selecting one of the actions in the cell in response to the difference.
A computer program product for synchronizing an original code base (OCB) with a superset code base (SCB) which is a superset of the OCB, the computer program product comprising:
- a storage medium;
- and
- program instructions stored on the storage medium for implementing:
- obtaining the OCB;
- obtaining the SCB;
- determining a file pair difference between the OCB and the SCB;
- accessing an action table to retrieve actions based on a classification of each OCB file, a classification of each SCB file, and file pair difference wherein the actions in the action table identify a plurality of file operations and wherein each classification of the OCB and SCB files classifies the file as any one of:
- new, removed, updated, exists or not pending;
- assembling the actions into an action file;
- and
- executing the actions in the action file to synchronize the OCB and the SCB;
- wherein the action table includes cells indexed by the classification of the OCB file and the classification of the SCB file, each cell includes a plurality of actions;
- wherein retrieving actions includes selecting one of the actions in the cell in response to the difference.
Dependencies are inferred from the claim text.