[PATCH 2 of 7 v2] import-checker: track SyntaxErrors

Yuya Nishihara yuya at tcha.org
Fri Apr 15 09:52:35 EDT 2016


On Wed, 13 Apr 2016 12:21:45 -0500, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1460565379 0
> #      Wed Apr 13 16:36:19 2016 +0000
> # Node ID f5294c92fb0fdc4b4954198dc306bfde4373ac76
> # Parent  20a703ce76f7cda378d2ce950b7daa971b508d74
> import-checker: track SyntaxErrors

> +            except SyntaxError as e:
> +                print('SyntaxError %s:%d: %s' %
> +                      (source_path, e.lineno, e))

I've adjusted the format to '%s:%d: SyntaxError: %s', which is more friendly
for parsers such as emacs' compilation-mode.


More information about the Mercurial-devel mailing list