Patchwork [2,of,2,v2] hghave.py: fix matchoutput documentation

login
register
mail settings
Submitter timeless@mozdev.org
Date Nov. 25, 2015, 12:38 a.m.
Message ID <d9b4ca9d3b8b9b1c03d6.1448411888@waste.org>
Download mbox | patch
Permalink /patch/11638/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless@mozdev.org - Nov. 25, 2015, 12:38 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1448404316 0
#      Tue Nov 24 22:31:56 2015 +0000
# Node ID d9b4ca9d3b8b9b1c03d6cc75a429925d08ad251b
# Parent  f16e3652aabb27c0d8c995cb12773c3b87ff955f
hghave.py: fix matchoutput documentation
Yuya Nishihara - Nov. 27, 2015, 1:50 p.m.
On Tue, 24 Nov 2015 18:38:08 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless@mozdev.org>
> # Date 1448404316 0
> #      Tue Nov 24 22:31:56 2015 +0000
> # Node ID d9b4ca9d3b8b9b1c03d6cc75a429925d08ad251b
> # Parent  f16e3652aabb27c0d8c995cb12773c3b87ff955f
> hghave.py: fix matchoutput documentation
> 
> diff --git a/tests/hghave.py b/tests/hghave.py
> --- a/tests/hghave.py
> +++ b/tests/hghave.py
> @@ -68,7 +68,7 @@
>          sys.exit(1)
>  
>  def matchoutput(cmd, regexp, ignorestatus=False):
> -    """Return True if cmd executes successfully and its output
> +    """Return the match object if cmd executes successfully and its output

Sure, pushed to the clowncopter, thanks.

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -68,7 +68,7 @@ 
         sys.exit(1)
 
 def matchoutput(cmd, regexp, ignorestatus=False):
-    """Return True if cmd executes successfully and its output
+    """Return the match object if cmd executes successfully and its output
     is matched by the supplied regular expression.
     """
     r = re.compile(regexp)