Patchwork templatekw: fix documentation typos

login
register
mail settings
Submitter Matt Harbison
Date Jan. 5, 2019, 4:39 a.m.
Message ID <eeeefdb847cfb313d9b9.1546663198@Envy>
Download mbox | patch
Permalink /patch/37483/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 5, 2019, 4:39 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1546653670 18000
#      Fri Jan 04 21:01:10 2019 -0500
# Node ID eeeefdb847cfb313d9b974afef520b57188ecb19
# Parent  3e2c02836420f514c76cecf39a70da79a761e037
templatekw: fix documentation typos
Yuya Nishihara - Jan. 5, 2019, 6:59 a.m.
On Fri, 04 Jan 2019 23:39:58 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1546653670 18000
> #      Fri Jan 04 21:01:10 2019 -0500
> # Node ID eeeefdb847cfb313d9b974afef520b57188ecb19
> # Parent  3e2c02836420f514c76cecf39a70da79a761e037
> templatekw: fix documentation typos

Queued for stable, thanks.

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -586,7 +586,7 @@  def showpeerurls(context, mapping):
 
 @templatekeyword("predecessors", requires={'repo', 'ctx'})
 def showpredecessors(context, mapping):
-    """Returns the list if the closest visible successors. (EXPERIMENTAL)"""
+    """Returns the list of the closest visible successors. (EXPERIMENTAL)"""
     repo = context.resource(mapping, 'repo')
     ctx = context.resource(mapping, 'ctx')
     predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node()))
@@ -624,7 +624,7 @@  def showstatus(context, mapping):
 @templatekeyword("successorssets", requires={'repo', 'ctx'})
 def showsuccessorssets(context, mapping):
     """Returns a string of sets of successors for a changectx. Format used
-    is: [ctx1, ctx2], [ctx3] if ctx has been splitted into ctx1 and ctx2
+    is: [ctx1, ctx2], [ctx3] if ctx has been split into ctx1 and ctx2
     while also diverged into ctx3. (EXPERIMENTAL)"""
     repo = context.resource(mapping, 'repo')
     ctx = context.resource(mapping, 'ctx')