Show More
@@ -910,7 +910,10 b' def show_changeset(ui, repo, opts, buffe' | |||||
910 | if not (tmpl or style): |
|
910 | if not (tmpl or style): | |
911 | tmpl = ui.config('ui', 'logtemplate') |
|
911 | tmpl = ui.config('ui', 'logtemplate') | |
912 | if tmpl: |
|
912 | if tmpl: | |
|
913 | try: | |||
913 | tmpl = templater.parsestring(tmpl) |
|
914 | tmpl = templater.parsestring(tmpl) | |
|
915 | except SyntaxError: | |||
|
916 | tmpl = templater.parsestring(tmpl, quoted=False) | |||
914 | else: |
|
917 | else: | |
915 | style = util.expandpath(ui.config('ui', 'style', '')) |
|
918 | style = util.expandpath(ui.config('ui', 'style', '')) | |
916 |
|
919 |
@@ -45,6 +45,15 b' Second branch starting at nullrev:' | |||||
45 | $ hg mv second fourth |
|
45 | $ hg mv second fourth | |
46 | $ hg commit -m third -d "2020-01-01 10:01" |
|
46 | $ hg commit -m third -d "2020-01-01 10:01" | |
47 |
|
47 | |||
|
48 | Quoting for ui.logtemplate | |||
|
49 | ||||
|
50 | $ hg tip --config "ui.logtemplate={rev}\n" | |||
|
51 | 8 | |||
|
52 | $ hg tip --config "ui.logtemplate='{rev}\n'" | |||
|
53 | 8 | |||
|
54 | $ hg tip --config 'ui.logtemplate="{rev}\n"' | |||
|
55 | 8 | |||
|
56 | ||||
48 | Make sure user/global hgrc does not affect tests |
|
57 | Make sure user/global hgrc does not affect tests | |
49 |
|
58 | |||
50 | $ echo '[ui]' > .hg/hgrc |
|
59 | $ echo '[ui]' > .hg/hgrc |
General Comments 0
You need to be logged in to leave comments.
Login now