Mercurial > hg
diff mercurial/hgweb/common.py @ 16678:48b1674ac1e7 stable
templater: handle SyntaxError when parsing ui.logtemplate
Before, Mercurial would crash with a traceback ending with
SyntaxError: unmatched quotes
if you configured
[ui]
logtemplate = {rev}\n
The SyntaxError is now catched and the string is re-parsed without
requiring quotes.
author | Martin Geisler <martin@geisler.net> |
---|---|
date | Sat, 12 May 2012 22:12:54 +0200 |
parents | 3233b39d756f |
children | e34106fa0dc3 |