# HG changeset patch # User Patrick Mezard # Date 1263548291 -3600 # Node ID af24805aa37c6637139891d84fac610e4ff9a917 # Parent 4441e8d7f04f1784dd2bdadddff43ba45dec60bd# Parent 8ebb34b0f6f7bb8c31c25d31db0ee7812af836e3 Merge with crew-stab le diff -r 4441e8d7f04f -r af24805aa37c mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Jan 14 16:43:14 2010 +0100 +++ b/mercurial/cmdutil.py Fri Jan 15 10:38:11 2010 +0100 @@ -891,7 +891,7 @@ if tmpl: tmpl = templater.parsestring(tmpl) else: - style = ui.config('ui', 'style') + style = util.expandpath(ui.config('ui', 'style', '')) if not (tmpl or style): return changeset_printer(ui, repo, patch, opts, buffered) diff -r 4441e8d7f04f -r af24805aa37c tests/test-command-template --- a/tests/test-command-template Thu Jan 14 16:43:14 2010 +0100 +++ b/tests/test-command-template Fri Jan 15 10:38:11 2010 +0100 @@ -181,5 +181,18 @@ hg tag -r 5 -m t5 -d '9 0' t5 hg tag -r 3 -m at3 -d '10 0' at3 hg log --template '{rev}: {latesttag}+{latesttagdistance}\n' +cd .. + +echo '# style path expansion (issue1948)' +mkdir -p home/styles +cat > home/styles/teststyle < latesttag/.hg/hgrc <