equal
deleted
inserted
replaced
169 return None, mapname |
169 return None, mapname |
170 |
170 |
171 # perhaps it's a reference to [templates] |
171 # perhaps it's a reference to [templates] |
172 t = ui.config('templates', tmpl) |
172 t = ui.config('templates', tmpl) |
173 if t: |
173 if t: |
174 try: |
174 return templater.unquotestring(t), None |
175 tmpl = templater.unquotestring(t) |
|
176 except SyntaxError: |
|
177 tmpl = t |
|
178 return tmpl, None |
|
179 |
175 |
180 if tmpl == 'list': |
176 if tmpl == 'list': |
181 ui.write(_("available styles: %s\n") % templater.stylelist()) |
177 ui.write(_("available styles: %s\n") % templater.stylelist()) |
182 raise error.Abort(_("specify a template")) |
178 raise error.Abort(_("specify a template")) |
183 |
179 |