Download:
child 18:305bd086b730
parent 16:461dc5016874
17:84e3983ef532
Anton Shestakov <av6@dwimlabs.net>, Wed, 07 Feb 2018 11:59:16 +0800
changeset: show obsfate (from hg 4.5)

2 файлов изменено, 6 вставок(+), 0 удалений(-) [+]
templates/kit/changeset.tmpl file | annotate | diff | comparison | revisions
templates/kit/map file | annotate | diff | comparison | revisions
--- a/templates/kit/changeset.tmpl Wed Jan 24 14:03:53 2018 +0800
+++ b/templates/kit/changeset.tmpl Wed Feb 07 11:59:16 2018 +0800
@@ -30,6 +30,7 @@
{archives%archiveentry}
</div>
<table class="uk-margin-top">
+ {if(obsolete, '<tr><td>obsolete</td><td>{succsandmarkers%obsfateentry}</td></tr>')}
{child%changesetchild}
{ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)}
</table>
--- a/templates/kit/map Wed Jan 24 14:03:53 2018 +0800
+++ b/templates/kit/map Wed Feb 07 11:59:16 2018 +0800
@@ -258,6 +258,11 @@
inbranchtag = '<a href="{url|urlescape}shortlog/{name|revescape}{sessionvars%urlparameter}"><span class="uk-badge kit-badge-branch" title="Branch: {name|escape}">{name|escape}</span></a> '
bookmarktag = '<a href="{url|urlescape}rev/{name|revescape}{sessionvars%urlparameter}"><span class="uk-badge kit-badge-bookmark" title="Bookmark: {name|escape}">{name|escape}</span></a> '
alltags = '<span>{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
+successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
+obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
+obsfateverb = '{obsfateverb(successors, markers)}'
+obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
+obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
shortlogentry = '
<tr>
<td class="age">{date|rfc822date}</td>