comparison mercurial/cmdutil.py @ 10249:8ebb34b0f6f7 stable

cmdutil: expand style paths (issue1948) Fix suggested by Andrea Riciputi <andrea.riciputi@gmail.com>
author Patrick Mezard <pmezard@gmail.com>
date Fri, 15 Jan 2010 09:50:52 +0100
parents fb45c1e4396f
children af24805aa37c 25e572394f5c
comparison
equal deleted inserted replaced
10243:cd3e5c47d663 10249:8ebb34b0f6f7
1003 if not (tmpl or style): 1003 if not (tmpl or style):
1004 tmpl = ui.config('ui', 'logtemplate') 1004 tmpl = ui.config('ui', 'logtemplate')
1005 if tmpl: 1005 if tmpl:
1006 tmpl = templater.parsestring(tmpl) 1006 tmpl = templater.parsestring(tmpl)
1007 else: 1007 else:
1008 style = ui.config('ui', 'style') 1008 style = util.expandpath(ui.config('ui', 'style', ''))
1009 1009
1010 if not (tmpl or style): 1010 if not (tmpl or style):
1011 return changeset_printer(ui, repo, patch, opts, buffered) 1011 return changeset_printer(ui, repo, patch, opts, buffered)
1012 1012
1013 mapfile = None 1013 mapfile = None