From: Eric S. Raymond Date: Sat, 6 Oct 2012 07:59:55 +0000 (-0400) Subject: Actually get tinyfier from the config variables. X-Git-Tag: 1.8~8 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=349c00510588c1a1d2b5a3ab447adfd88fa55a9b;p=irker.git Actually get tinyfier from the config variables. --- diff --git a/irkerhook.py b/irkerhook.py index a02c5c5..90f0496 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -194,6 +194,7 @@ class GitExtractor(GenericExtractor): self.channels = do("git config --get irker.channels") self.tcp = do("git config --bool --get irker.tcp") self.template = '%(bold)s%(project)s:%(reset)s %(green)s%(author)s%(reset)s %(repo)s:%(yellow)s%(branch)s%(reset)s * %(bold)s%(rev)s%(reset)s / %(bold)s%(files)s%(reset)s: %(logmsg)s %(brown)s%(url)s%(reset)s' + self.tinyifier = do("git config --get irker.tinyifier") self.color = do("git config --get irker.color") self.urlprefix = do("git config --get irker.urlprefix") or "gitweb" self.filtercmd = do("git config --get irker.filtercmd") @@ -320,6 +321,7 @@ class HgExtractor(GenericExtractor): self.channels = ui.config('irker', 'channels') self.tcp = str(ui.configbool('irker', 'tcp')) # converted to bool again in do_overrides self.template = '%(bold)s%(project)s:%(reset)s %(green)s%(author)s%(reset)s %(repo)s:%(yellow)s%(branch)s%(reset)s * %(bold)s%(rev)s%(reset)s / %(bold)s%(files)s%(reset)s: %(logmsg)s %(brown)s%(url)s%(reset)s' + self.tinyifier = ui.config('tinyifier', 'color') self.color = ui.config('irker', 'color') self.urlprefix = (ui.config('irker', 'urlprefix') or ui.config('web', 'baseurl') or '')