[PATCH] chgserver: move comments in config example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] chgserver: move comments in config example

Jun Wu
# HG changeset patch
# User Jun Wu <[hidden email]>
# 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.

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
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] chgserver: move comments in config example

Augie Fackler-2
On Wed, Feb 15, 2017 at 06:55:26PM -0800, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <[hidden email]>
> # 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
> [hidden email]
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel