Hi,
I was trying to colourify the output of hg commands with a style (Style
file attached).
Looks like hg recognizes some keywords for which we can customize.
Even the 'start_*' accepts only these keywords.
I'm not able to declare my own variables. The attached style file
appears garbled due to lot of control characters and other characters
which are not printed.
Is there any way to declare my own variables and assign values to it
which can be used in the changeset_* lines?
I want to say something like:
changeset = '{blueS}{rev}{blueE}{tags}...}
blueS = '^[[36m'
blueE = '^[[0m'
This will also allow some more customizations.
Regards,
~Kini
--
Sun Microsystems - India Engineering Centre
http://blogs.sun.com/jkini
-------------- next part --------------
#header =
'----------------------------------------------------------------------------------\n'
changeset = '[36m{rev}[0m{tags}{parents} [36m{date|shortdate}
{author|email}[0m\n[33m{desc}[0m\n\n'
changeset_verbose = '[36m{rev}[0m{tags}{parents} [36m{node|short}
{date|shortdate} {author|email}[0m\n[33m{desc}[0m\n
{file_adds|stringify|fill68|tabindent}{file_dels|stringify|fill68|tabindent}{file_mods|stringify|fill68|tabindent}\n'
changeset_quiet = '{rev}:{node|short}\n'
changeset_debug = '{rev}{tags}{parents} {node|short} {date|shortdate}
{author|email}\n{desc}\n
{file_adds|stringify|fill68|tabindent}{file_dels|stringify|fill68|tabindent}{file_mods|stringify|fill68|tabindent}\n'
start_tags = '['
tag = '[42m{tag}[0m,'
last_tag = '[32m{tag}[0m]'
start_parents = ':'
parent = '[41m{rev}[0m,'
last_parent = '[41m{rev}[0m'
start_file_adds = '[34mNew Files:[0m '
file_add = '[34m{file_add},[0m '
last_file_add = '[34m{file_add}[0m\n '
start_file_dels = '[31mFiles Deleted:[0m '
file_del = '[31m{file_del},[0m '
last_file_del = '[31m{file_del}[0m\n '
start_file_mods = '[35mModified Files:[0m '
file_mod = '[35m{file_mod},[0m '
last_file_mod = '[35m{file_mod}[0m\n '
#footer =
'----------------------------------------------------------------------------------\n'