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