Patchwork [STABLE] help: correct signature of separate() template function

login
register
mail settings
Submitter Yuya Nishihara
Date May 24, 2018, 1:45 p.m.
Message ID <a3b4ccbec269a4ffabdc.1527169510@mimosa>
Download mbox | patch
Permalink /patch/31833/
State Accepted
Headers show

Comments

Yuya Nishihara - May 24, 2018, 1:45 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1527166471 -32400
#      Thu May 24 21:54:31 2018 +0900
# Branch stable
# Node ID a3b4ccbec269a4ffabdcc681212a36bbbdc4cca8
# Parent  5b831053d9b68fbb9afcc89d75391aee31f6cbb0
help: correct signature of separate() template function

Without the dots, it looked as if separate() would take a list of arguments.
via Mercurial-devel - May 26, 2018, 4:57 a.m.
On Thu, May 24, 2018 at 6:45 AM Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1527166471 -32400
> #      Thu May 24 21:54:31 2018 +0900
> # Branch stable
> # Node ID a3b4ccbec269a4ffabdcc681212a36bbbdc4cca8
> # Parent  5b831053d9b68fbb9afcc89d75391aee31f6cbb0
> help: correct signature of separate() template function
>

Queued, thanks

Patch

diff --git a/mercurial/templatefuncs.py b/mercurial/templatefuncs.py
--- a/mercurial/templatefuncs.py
+++ b/mercurial/templatefuncs.py
@@ -555,7 +555,7 @@  def rstdoc(context, mapping, args):
 
     return minirst.format(text, style=style, keep=['verbose'])
 
-@templatefunc('separate(sep, args)', argspec='sep *args')
+@templatefunc('separate(sep, args...)', argspec='sep *args')
 def separate(context, mapping, args):
     """Add a separator between non-empty arguments."""
     if 'sep' not in args: