Show More
@@ -1005,7 +1005,7 b' def show_changeset(ui, repo, opts, buffe' | |||||
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) |
@@ -171,5 +171,18 b" echo '# merged tag overrides'" | |||||
171 | hg tag -r 5 -m t5 -d '9 0' t5 |
|
171 | hg tag -r 5 -m t5 -d '9 0' t5 | |
172 | hg tag -r 3 -m at3 -d '10 0' at3 |
|
172 | hg tag -r 3 -m at3 -d '10 0' at3 | |
173 | hg log --template '{rev}: {latesttag}+{latesttagdistance}\n' |
|
173 | hg log --template '{rev}: {latesttag}+{latesttagdistance}\n' | |
|
174 | cd .. | |||
|
175 | ||||
|
176 | echo '# style path expansion (issue1948)' | |||
|
177 | mkdir -p home/styles | |||
|
178 | cat > home/styles/teststyle <<EOF | |||
|
179 | changeset = 'test {rev}:{node|short}\n' | |||
|
180 | EOF | |||
|
181 | HOME=`pwd`/home; export HOME | |||
|
182 | cat > latesttag/.hg/hgrc <<EOF | |||
|
183 | [ui] | |||
|
184 | style = ~/styles/teststyle | |||
|
185 | EOF | |||
|
186 | hg -R latesttag tip | |||
174 |
|
187 | |||
175 | echo '# done' |
|
188 | echo '# done' |
General Comments 0
You need to be logged in to leave comments.
Login now