Patchwork [4,of,5,V2] color: add an alias called 'color' for 'label'

login
register
mail settings
Submitter Sean Farley
Date April 7, 2014, 9:17 p.m.
Message ID <9211c7e2e984bbc0b436.1396905423@laptop.local>
Download mbox | patch
Permalink /patch/4254/
State Superseded
Headers show

Comments

Sean Farley - April 7, 2014, 9:17 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1396903107 18000
#      Mon Apr 07 15:38:27 2014 -0500
# Node ID 9211c7e2e984bbc0b4366d2d2ed8c312c0b949a1
# Parent  7cea8c50123abedefc62df09bd70db8d8db89317
color: add an alias called 'color' for 'label'

Patch

diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -482,10 +482,11 @@  funcs = {
     "if": if_,
     "ifcontains": ifcontains,
     "ifeq": ifeq,
     "join": join,
     "label": label,
+    "color": label,
     "pad": pad,
     "revset": revset,
     "rstdoc": rstdoc,
     "shortest": shortest,
     "strip": strip,