[PATCH] chgserver: move comments in config example

Jun Wu quark at fb.com
Thu Feb 16 02:55:26 UTC 2017


# HG changeset patch
# User Jun Wu <quark at 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.

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
 """
 


More information about the Mercurial-devel mailing list