Fix for bug 251898: Add function information to PatchReader output.

Added support for the function strings included in unified and
contextual diffs, which is included in PatchReader-0.9.5. r=jkeiser,
a=justdave.
This commit is contained in:
kiko%async.com.br 2004-07-18 15:39:49 +00:00
Родитель 296051f62e
Коммит 3657a967e9
1 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -24,7 +24,7 @@
# relations can change and screw up the javascript for restoring, collapsing # relations can change and screw up the javascript for restoring, collapsing
# and expanding. Do not change without testing all three of those. # and expanding. Do not change without testing all three of those.
#%] #%]
<table class="file_table"><thead><tr><td class="file_head" colspan="2"><a href="#" onclick="return twisty_click(this)">[% collapsed ? '(+)' : '(-)' %]</a><input type="checkbox" name="[% file.filename FILTER html %]"[% collapsed ? '' : ' checked' %] style="display: none"> <table class="file_table"><thead><tr><td class="file_head" colspan="2"><a style="text-decoration: none" href="#" onclick="return twisty_click(this)">[% collapsed ? '(+)' : '(-)' %]</a><input type="checkbox" name="[% file.filename FILTER html %]"[% collapsed ? '' : ' checked' %] style="display: none">
[% IF lxr_prefix && !file.is_add %] [% IF lxr_prefix && !file.is_add %]
<a href="[% lxr_prefix %]">[% file.filename FILTER html %]</a> <a href="[% lxr_prefix %]">[% file.filename FILTER html %]</a>
[% ELSE %] [% ELSE %]
@ -49,7 +49,9 @@ incremental_restore()
[% section_num = 0 %] [% section_num = 0 %]
[% FOREACH section = sections %] [% FOREACH section = sections %]
[% section_num = section_num + 1 %] [% section_num = section_num + 1 %]
<tr><th class="section_head" colspan="2"> <tr><th colspan="2" class="section_head">
<table cellpadding="0" cellspacing="0">
<tr><th width="95%" align="left">
[% IF file.is_add %] [% IF file.is_add %]
Added Added
[% ELSIF file.is_remove %] [% ELSIF file.is_remove %]
@ -63,15 +65,19 @@ incremental_restore()
<a href="[% bonsai_prefix %]#[% section.old_start %]"> <a href="[% bonsai_prefix %]#[% section.old_start %]">
[% END %] [% END %]
[% IF section.old_lines > 1 %] [% IF section.old_lines > 1 %]
Lines [% section.old_start %]-[% section.old_start + section.old_lines - 1 %] &nbsp;Lines&nbsp;[% section.old_start %]-[% section.old_start +
section.old_lines - 1 %]
[% ELSE %] [% ELSE %]
Line [% section.old_start %] Line&nbsp;[% section.old_start %]
[% END %] [% END %]
[% IF bonsai_prefix %] [% IF bonsai_prefix %]
</a> </a>
[% END %] [% END %]
&nbsp;&nbsp;[% section.func_info FILTER html IF section.func_info %]
[% END %] [% END %]
(<a name="[% file.filename FILTER html %]_sec[% section_num %]"><a href="#[% file.filename FILTER html %]_sec[% section_num %]">Link Here</a></a>) </th><th>
<a name="[% file.filename FILTER html %]_sec[% section_num %]"><a href="#[% file.filename FILTER html %]_sec[% section_num %]">Link&nbsp;Here</a></a>&nbsp;
</th></tr></table>
</th></tr> </th></tr>
[% FOREACH group = section.groups %] [% FOREACH group = section.groups %]
[% IF group.context %] [% IF group.context %]