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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Feb 1 13:13:51 CST 2013


On Fri, Feb 01, 2013 at 12:36:07PM -0600, Kevin Bullock wrote:
> 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.

So this is a "revision it would make sense to diff against" (and we are possibly already diffing against)

So maybe "alternativediffbase"

The current diffbase should probably be excluded from this list (That's a list isn't it?)

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list