hgweb: rename 'changesetbaseline' template to 'difffrom' stable
authorKevin Bullock <kbullock@ringworld.org>
Fri, 01 Feb 2013 09:58:25 -0600
branchstable
changeset 18523 41eabb5b8761
parent 18518 0324a1d88a53
child 18524 66ae2ded0968
hgweb: rename 'changesetbaseline' template to 'difffrom' More accurately reflects what it will be used for, and is also shorter. This template is used to change which rev the current rev is diff'd against. For example, if you're at '/rev/P1:REV', this would link to a path like '/rev/P2:REV'. Example usage in a template: {parent%difffrom}
mercurial/templates/paper/map
--- a/mercurial/templates/paper/map	Fri Feb 01 02:01:11 2013 +0100
+++ b/mercurial/templates/paper/map	Fri Feb 01 09:58:25 2013 -0600
@@ -101,7 +101,7 @@
 
 changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
 
-changesetbaseline = '<a href="{url}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">{node|short}</a> '
+difffrom = '<a href="{url}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">{node|short}</a> '
 
 filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
 filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '