[PATCH 1 of 2 V2 STABLE] hgweb: rename 'changesetbaseline' template to 'difffrom'

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Feb 1 13:51:47 CST 2013


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1359734305 21600
# Branch stable
# Node ID 41eabb5b87610bb4d2410b80c39cb7a3b91e3a5c
# Parent  0324a1d88a53e2fdbc071d96c79eb5cf4e511372
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}

diff --git a/mercurial/templates/paper/map b/mercurial/templates/paper/map
--- a/mercurial/templates/paper/map
+++ b/mercurial/templates/paper/map
@@ -101,7 +101,7 @@ changelogparent = '
 
 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> '


More information about the Mercurial-devel mailing list