Patchwork [2,of,2,V2,STABLE] hgweb: rename 'currentbaseline' template keyword to 'basenode'

login
register
mail settings
Submitter Kevin Bullock
Date Feb. 1, 2013, 7:51 p.m.
Message ID <66ae2ded096887109998.1359748308@opendoor.mincava.umn.edu>
Download mbox | patch
Permalink /patch/790/
State Accepted
Commit 66ae2ded096887109998a48a519637d02c6bfabd
Headers show

Comments

Kevin Bullock - Feb. 1, 2013, 7:51 p.m.
# HG changeset patch
# User Kevin Bullock <kbullock@ringworld.org>
# Date 1359735161 21600
# Branch stable
# Node ID 66ae2ded096887109998a48a519637d02c6bfabd
# Parent  41eabb5b87610bb4d2410b80c39cb7a3b91e3a5c
hgweb: rename 'currentbaseline' template keyword to 'basenode'

Shorter and clearer. This keyword represents the node we're currently
diffing against.

Patch

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -293,7 +293,7 @@  def changeset(web, req, tmpl):
                 node=ctx.hex(),
                 parent=webutil.parents(ctx),
                 child=webutil.children(ctx),
-                currentbaseline=basectx.hex(),
+                basenode=basectx.hex(),
                 changesettag=showtags,
                 changesetbookmark=showbookmarks,
                 changesetbranch=showbranch,