Patchwork [3,of,3] config: propose some sample global config file

login
register
mail settings
Submitter Jordi Gutiérrez Hermoso
Date Aug. 24, 2014, 11:51 p.m.
Message ID <7cf9cc9359ec5b34cb9b.1408924297@Iris>
Download mbox | patch
Permalink /patch/5584/
State Accepted
Headers show

Comments

Jordi Gutiérrez Hermoso - Aug. 24, 2014, 11:51 p.m.
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh@octave.org>
# Date 1408923946 14400
#      Sun Aug 24 19:45:46 2014 -0400
# Node ID 7cf9cc9359ec5b34cb9b861ddb2852d31bc204bc
# Parent  12718916f03b4a917609ecf41bb8d93fbd1024ca
config: propose some sample global config file

An example of what could be suggested to the user as a global config
file. Trying to be conservative here, and only suggesting the safest
possible extensions. In addition to the user-level extensions, the
blackbox extension is something a sysadmin might reasonable want to
enable for every repo on the system.
Pierre-Yves David - Sept. 2, 2014, 7:09 p.m.
On 08/25/2014 01:51 AM, Jordi Gutiérrez Hermoso wrote:
> # HG changeset patch
> # User Jordi Gutiérrez Hermoso <jordigh@octave.org>
> # Date 1408923946 14400
> #      Sun Aug 24 19:45:46 2014 -0400
> # Node ID 7cf9cc9359ec5b34cb9b861ddb2852d31bc204bc
> # Parent  12718916f03b4a917609ecf41bb8d93fbd1024ca
> config: propose some sample global config file
>
> An example of what could be suggested to the user as a global config
> file. Trying to be conservative here, and only suggesting the safest
> possible extensions. In addition to the user-level extensions, the
> blackbox extension is something a sysadmin might reasonable want to
> enable for every repo on the system.
>
> diff --git a/mercurial/config.py b/mercurial/config.py
> --- a/mercurial/config.py
> +++ b/mercurial/config.py
> @@ -36,7 +36,15 @@ username =
>
>       'global':
>   """# example system-wide hg config (see "hg help config" for more info)
> -""",
> +
> +[extensions]
> +# Uncomment these lines for some possible extensions
> +# (see "hg help extensions" for more info)
> +#
> +# blackbox =
> +# progress =
> +# color =
> +# pager =""",
>   }
>
>   class config(object):

Not sure it seems reasonable to enable progress, color and pager system 
wide (eg: progress as known bug with some hgweb install).

But I guess I'll accept this patch anyway to make the topic forward.

We may consider listing something about watchman. If the system can get 
watchman installed there is no good reason to not get a system wide install.


> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

Patch

diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -36,7 +36,15 @@  username =
 
     'global':
 """# example system-wide hg config (see "hg help config" for more info)
-""",
+
+[extensions]
+# Uncomment these lines for some possible extensions
+# (see "hg help extensions" for more info)
+#
+# blackbox =
+# progress =
+# color =
+# pager =""",
 }
 
 class config(object):