[PATCH 1 of 2] hgweb: rename 'changesetbaseline' template to 'diffbase'

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Feb 1 12:36:07 CST 2013


On Feb 1, 2013, at 12:17 PM, Kevin Bullock wrote:

> # HG changeset patch
> # User Kevin Bullock <kbullock at ringworld.org>
> # Date 1359734305 21600
> # Branch stable
> # Node ID 58ddfba8e948636bb8bf5911e35337e869fc51b5
> # Parent  0c51532ec2335b89fa0283a84e57754495df2c08
> hgweb: rename 'changesetbaseline' template to 'diffbase'
> 
> More accurately reflects what it will be used for, and is also shorter.
> 
> 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> '
> +diffbase = '<a href="{url}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">{node|short}</a> '

Actually 'diffagainst' might be better here: the purpose of this template is to show a link that -changes- the rev we're diffing against, not to link to the rev itself.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list