Show More
@@ -295,6 +295,8 b' class templater(object):' | |||
|
295 | 295 | conf.read(mapfile) |
|
296 | 296 | |
|
297 | 297 | for key, val in conf[''].items(): |
|
298 | if not val: | |
|
299 | raise SyntaxError(_('%s: missing value') % conf.source('', key)) | |
|
298 | 300 | if val[0] in "'\"": |
|
299 | 301 | try: |
|
300 | 302 | self.cache[key] = parsestring(val) |
@@ -463,6 +463,13 b' Error if style missing key:' | |||
|
463 | 463 | abort: "changeset" not in template map |
|
464 | 464 | [255] |
|
465 | 465 | |
|
466 | Error if style missing value: | |
|
467 | ||
|
468 | $ echo 'changeset =' > t | |
|
469 | $ hg log --style t | |
|
470 | abort: t:1: missing value | |
|
471 | [255] | |
|
472 | ||
|
466 | 473 | Error if include fails: |
|
467 | 474 | |
|
468 | 475 | $ echo 'changeset = q' >> t |
General Comments 0
You need to be logged in to leave comments.
Login now