mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
6b9779860f
Add support for a "patch" query parameter in filelog web command similar to --patch option of `hg log` to display the diff of each changeset in the table of revisions. The diff text is displayed in a dedicated row of the table that follows the existing one for each entry and spans over all columns. Only update "paper" template in this patch.
10 lines
427 B
Cheetah
10 lines
427 B
Cheetah
<tr>
|
|
<td class="age">{date|rfc822date}</td>
|
|
<td class="author">{author|person}</td>
|
|
<td class="description">
|
|
<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>
|
|
{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}{rename%filelogrename}
|
|
</td>
|
|
</tr>
|
|
{if(patch, '<tr><td colspan="3">{diff}</td></tr>')}
|