发明名称 EFFICIENT ANNOTATION SYSTEM FOR DISTRIBUTED VERSION CONTROL SYSTEMS
摘要 Systems and methods for making source code annotations available across software code repository commits are disclosed. An example method for creating an incremental blame structure for determining which annotations should be shown begins with receiving a commit including at least one file that has been updated with respect to a parent commit. Then, parent file revisions for the at least one file should be identified. An example method determines the differences between the at least one file and the identified parent file revisions and traces an origin of each line in the file based on the determined differences. An identifier of the line and the line's origin may be added to the incremental blame data structure of the file.
申请公布号 US2016170746(A1) 申请公布日期 2016.06.16
申请号 US201414572463 申请日期 2014.12.16
申请人 Google Inc. 发明人 NEUBECK Alexander;GRYAZNOV Evgeny
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项 1. A computer-implemented method for creating an incremental blame data structure for a file, the method comprising: receiving a commit including at least one file that has been updated with respect to a parent commit; identifying parent file revisions for the at least one file; determining the differences between the at least one file and the identified parent file revisions; tracing a line origin, which includes a revision number and line number responsible for the current state of the line, of each line in the file based on the determined differences; responsive to determining that a line has been added or changed, marking the line as an origin and linking the line to itself in an incremental blame data structure for the file; responsive to determining that a line has not been updated, determining an origin of the unmodified line by tracing the parent file revisions associated with the unmodified line; and adding an identifier of the line and the line's origin to the incremental blame data structure of the file.
地址 Mountain View CA US