Mercurial > public > mercurial-scm > hg
diff mercurial/templater.py @ 1914:a5bf0030df5f
make --style=compact look for map-cmdline.compact.
change name of key in map file from changelog to changeset.
rename command map files to start with map-cmdline.
rename ui.logmap to ui.style in hgrc.
now --style=foo does this:
tries to open foo as file.
tries as map-cmdline.foo in template path.
tries as foo in template path.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sat, 04 Mar 2006 15:15:18 -0800 |
parents | 74cf2b2f43d4 |
children | 2f500a4b6e99 |
line wrap: on
line diff
--- a/mercurial/templater.py Sat Mar 04 12:40:10 2006 -0800 +++ b/mercurial/templater.py Sat Mar 04 15:15:18 2006 -0800 @@ -76,9 +76,9 @@ return i = 0 for l in file(mapfile): - l = l.rstrip('\r\n') + l = l.strip() i += 1 - if l.startswith('#') or not l.strip(): continue + if not l or l[0] in '#;': continue m = re.match(r'([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.+)$', l) if m: key, val = m.groups()