equal
deleted
inserted
replaced
397 else: |
397 else: |
398 mapfile = ui.config('ui', 'style') |
398 mapfile = ui.config('ui', 'style') |
399 |
399 |
400 if tmpl or mapfile: |
400 if tmpl or mapfile: |
401 if mapfile: |
401 if mapfile: |
402 if not os.path.isfile(mapfile): |
402 if not os.path.split(mapfile)[0]: |
403 mapname = templater.templatepath('map-cmdline.' + mapfile) |
403 mapname = (templater.templatepath('map-cmdline.' + mapfile) |
404 if not mapname: mapname = templater.templatepath(mapfile) |
404 or templater.templatepath(mapfile)) |
405 if mapname: mapfile = mapname |
405 if mapname: mapfile = mapname |
406 try: |
406 try: |
407 t = templater.changeset_templater(ui, repo, mapfile) |
407 t = templater.changeset_templater(ui, repo, mapfile) |
408 except SyntaxError, inst: |
408 except SyntaxError, inst: |
409 raise util.Abort(inst.args[0]) |
409 raise util.Abort(inst.args[0]) |