Patchwork [4,of,4,V3] templater: add an alias called 'color' for 'label'

login
register
mail settings
Submitter Sean Farley
Date April 7, 2014, 10:12 p.m.
Message ID <fb5277c1ef9ce43b106b.1396908769@laptop.local>
Download mbox | patch
Permalink /patch/4266/
State Superseded
Headers show

Comments

Sean Farley - April 7, 2014, 10:12 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1396903127 18000
#      Mon Apr 07 15:38:47 2014 -0500
# Node ID fb5277c1ef9ce43b106b7c2fe7ee505481fc8b1b
# Parent  6031d0dc64448a59acb44d7596f4d2a13860e569
templater: add an alias called 'color' for 'label'

Patch

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -422,10 +422,11 @@  def uisetup(ui):
             extstyles()
             configstyles(ui_)
         return orig(ui_, opts, cmd, cmdfunc)
     extensions.wrapfunction(dispatch, '_runcommand', colorcmd)
     templater.funcs['label'] = templatelabel
+    templater.funcs['color'] = templatelabel
 
 def extsetup(ui):
     commands.globalopts.append(
         ('', 'color', 'auto',
          # i18n: 'always', 'auto', and 'never' are keywords and should