[PATCH 5 of 6] perftemplating: stop going through the log command

Yuya Nishihara yuya at tcha.org
Mon Jun 11 07:50:36 EDT 2018


On Mon, 11 Jun 2018 09:52:24 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1527787384 -7200
> #      Thu May 31 19:23:04 2018 +0200
> # Node ID d3a7e385f495769fc0bdd37a0801dfb7ee7f153d
> # Parent  a8dd8972d7b4e809dd9533af7e977ad686b6220c
> # EXP-Topic perftemplate
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r d3a7e385f495
> perftemplating: stop going through the log command

Queued the series, thanks.

> +try:
> +    from mercurial import logcmdutil
> +    makelogtemplater = logcmdutil.maketemplater
> +except (AttributeError, ImportError):
> +    try:
> +        from mercurial import cmdutil

Removed this line since cmdutil is imported at top.

>  def perftemplating(ui, repo, **opts):
> +    if makelogtemplater is None:
> +        ui.write_err('incompatible Mercurial version')
> +        return 1

Nit: the other perf commands do abort instead of returning 1.


More information about the Mercurial-devel mailing list