Patchwork chgserver: move comments in config example

login
register
mail settings
Submitter Jun Wu
Date Feb. 16, 2017, 2:55 a.m.
Message ID <894c348d49abb67613b1.1487213726@localhost.localdomain>
Download mbox | patch
Permalink /patch/18543/
State Accepted
Headers show

Comments

Jun Wu - Feb. 16, 2017, 2:55 a.m.
# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 1487212221 28800
#      Wed Feb 15 18:30:21 2017 -0800
# Node ID 894c348d49abb67613b156a2f7c60a840818bc39
# Parent  e5363cb96233861fc99f7e9b85d7884d3121558c
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r 894c348d49ab
chgserver: move comments in config example

"#" must be the first character of a line to mark the text as comments.
So let's change the docstring.
Augie Fackler - Feb. 16, 2017, 5:05 p.m.
On Wed, Feb 15, 2017 at 06:55:26PM -0800, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark@fb.com>
> # Date 1487212221 28800
> #      Wed Feb 15 18:30:21 2017 -0800
> # Node ID 894c348d49abb67613b156a2f7c60a840818bc39
> # Parent  e5363cb96233861fc99f7e9b85d7884d3121558c
> # Available At https://bitbucket.org/quark-zju/hg-draft
> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r 894c348d49ab
> chgserver: move comments in config example

Queued, thanks.

>
> "#" must be the first character of a line to mark the text as comments.
> So let's change the docstring.
>
> diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
> --- a/mercurial/chgserver.py
> +++ b/mercurial/chgserver.py
> @@ -32,6 +32,9 @@ Config
>
>    [chgserver]
> -  idletimeout = 3600 # seconds, after which an idle server will exit
> -  skiphash = False   # whether to skip config or env change checks
> +  # how long (in seconds) should an idle chg server exit
> +  idletimeout = 3600
> +
> +  # whether to skip config or env change checks
> +  skiphash = False
>  """
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -32,6 +32,9 @@  Config
 
   [chgserver]
-  idletimeout = 3600 # seconds, after which an idle server will exit
-  skiphash = False   # whether to skip config or env change checks
+  # how long (in seconds) should an idle chg server exit
+  idletimeout = 3600
+
+  # whether to skip config or env change checks
+  skiphash = False
 """