[Tickets #197] have annotate mode link to line's prior version
bugs@bugs.horde.org
bugs at bugs.horde.org
Mon Jan 2 17:56:09 PST 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=197
-----------------------------------------------------------------------
Ticket | 197
Updated By | oyasumi+chora at gmail.com
Summary | have annotate mode link to line's prior version
Queue | Chora
Version | HEAD
State | Accepted
Priority | 1. Low
Type | Enhancement
Owners |
+New Attachment | get_diff_chunks.pike
-----------------------------------------------------------------------
oyasumi+chora at gmail.com (2006-01-02 17:56) wrote:
I have implemented this feature in another CVS visualizer written in Pike:
Code Librarian. Here is the algorithm for reading diffs produced by cvs
rdiff, picking out from-line in revision r1 and to-line in revision r2 for
every diff chunk between the two revisions. It is used for generating the
line number links in, for instance,
http://pike.ida.liu.se/development/cvs/diff-popup.xml?module=Pike&file=7.7/s
rc/post_modules/GTK2/source/gtkcomboboxentry.pre&from=1.1&to=1.2
The output produced is a mapping with an array of chunk mappings listing
their from/to line numbers and number of diff lines in either revision, and
an array of diff lines, one for each line in the produced unidiff. Each diff
line mapping also lists the corresponding lines in the from/to revisions.
More information about the bugs
mailing list