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

login
register
mail settings
Submitter Kevin Bullock
Date Feb. 1, 2013, 7:51 p.m.
Message ID <41eabb5b87610bb4d241.1359748307@opendoor.mincava.umn.edu>
Download mbox | patch
Permalink /patch/789/
State Accepted
Commit 41eabb5b87610bb4d2410b80c39cb7a3b91e3a5c
Headers show

Comments

Kevin Bullock - Feb. 1, 2013, 7:51 p.m.
# HG changeset patch
# User Kevin Bullock <kbullock@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}

Patch

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> '