Patent ID: 9747098
Date: 2017-08-29
CPC Classifications: G06F

Claim:
1. A computer program product for verifying source code in disparate source control systems, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to: obtain, by the processor, a first source code from a target repository; access, by the processor, a second source code from a source repository, the source repository comprising an editor configured to display differences in a file in the second source code that has been modified; and verify, by the processor, each file in the first source code matches each corresponding file in the second source code based on further program instruction executable by the processor to cause the processor to: read, by the processor, file content in the first source code in the target repository; access, by the processor, a corresponding file in the second source code in the source repository; replace, by the processor, all content of the corresponding file in the second source code in the source repository with the all file content in the first source code in the target repository; execute, by the processor, the editor in the source repository to display content differences in the corresponding file that have been modified as a result of replacing content; and log, by the processor, each file in the first source code in the target repository as unverified upon a determination that the editor in the source repository displays differences in the corresponding file in the second source code as a result of replacing content; traverse, by the processor, each directory in the target repository based on further program instruction executable by the processor to cause the processor to: log, by the processor, each file in the first source code in the target repository as unverified upon a determination that no corresponding file exists in the second source code in the source repository; and log, by the processor, each directory in the first source code in the target repository as unverified upon a determination that no corresponding directory exists in the second source code in the source repository; and traverse, by the processor, each directory in the source repository based on further program instruction executable by the processor to cause the processor to: log, by the processor, each file in the second source code in the source repository as unverified upon a determination that no corresponding file exists in the first source code in the target repository; log, by the processor, each directory in the second source code in the source repository as unverified upon a determination that no corresponding directory exists in the first source code in the target repository; log, by the processor, a screenshot of the first source code from the target repository and a screenshot of the second source code from the target repository for every determination that the editor in the source repository displays differences in the corresponding file in the second source code as the result of replacing content; and provide, by the processor, the logging results for review.