mercurial/templates/paper/map
changeset 23740 9e1f4c65f5f5
parent 19796 544848ef65f2
child 25606 3bb6f5f478a7
--- a/mercurial/templates/paper/map	Sun Dec 21 14:34:07 2014 -0800
+++ b/mercurial/templates/paper/map	Sat Jan 03 17:50:21 2015 +0800
@@ -112,7 +112,11 @@
 
 changesetparent = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
 
-difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">{node|short}</a> '
+changesetparentdiff = '
+  {changesetparent}
+  {ifeq(node, basenode, '(current diff)', '({difffrom})')}'
+
+difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
 
 filerevparent = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
 filerevchild = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '