On Thu, Dec 13, 2018 at 4:36 PM Yuya Nishihara <y...@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <y...@tcha.org>
> # Date 1544620797 -32400
> #      Wed Dec 12 22:19:57 2018 +0900
> # Node ID eeb0c3a62092414713689e9dce6e8949bd27692b
> # Parent  a6ba978d9ffb0dc8b0edb8f892a947776b6377c5
> templatefuncs: add regexp search() function that extracts substring
>
> This can be used to extract an issue number from a commit message, for
> example:
>
>   {search(r'\(issue([0-9]*)\)', desc) % '{1}'}
>

Nice, queued the series, many thanks!
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to