Correcting comment drift in merges in a version control system
US10289407B1 · kind B1 · utility
Assignee
Inventors
Key dates
| Filing date | Mar 14, 2014 |
| Grant date | May 14, 2019 |
| Priority date | — |
| Expiry date | Aug 3, 2036 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/3844
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
In an embodiment, a data processing method provides creating and storing one or more comment records, wherein each of the comment records associates a first identifier of a comment with a second identifier of a line of computer program source code to which the comment pertains, and a change set of a first version of the source code; receiving a request to display a second version of the source code, and in response to the request: determining a diff between the second version of the source code and the first version of the source code; for each hunk of the diff, automatically computing a drift value representing a number of lines of the source code by which a particular comment associated with the first version of the source code has changed with respect to the second version of the source code; updating a particular comment record of the particular comment by modifying the second identifier based upon the drift value; repeating the receiving, determining, computing and updating for all comments that are associated with the first version of the source code in the hunk and for all other hunks of the diff.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.