comparison mercurial/templates/paper/changeset.tmpl @ 17991:d605a82cf189

hgweb: display diff for a changeset against any parents (issue2810) During merge of branches, it is useful to compare merge results against the two parents. This change adds this support to hgweb. To specify which parent to compare to, use rev/12300:12345 where 12300 is a parent changeset number. Two links are added to changeset web page so that one can choose which parent to compare to.
author Weiwen <weiwen@fb.com>
date Mon, 12 Nov 2012 14:05:39 -0800
parents fe9d36a6853e
children bebb05a7e249
comparison
equal deleted inserted replaced
17990:8216eb592dcd 17991:d605a82cf189
72 <p> 72 <p>
73 <table>{diffstat}</table> 73 <table>{diffstat}</table>
74 </div> 74 </div>
75 </td> 75 </td>
76 </tr> 76 </tr>
77 <tr>
78 <th class="author">change baseline</th>
79 <td class="author">{parent%changesetbaseline}</td>
80 </tr>
81 <tr>
82 <th class="author">current baseline</th>
83 <td class="author"><a href="{url}rev/{currentbaseline|short}{sessionvars%urlparameter}">{currentbaseline|short}</a></td>
84 </tr>
77 </table> 85 </table>
78 86
79 <div class="overflow"> 87 <div class="overflow">
80 <div class="sourcefirst"> line diff</div> 88 <div class="sourcefirst"> line diff</div>
81 89