Patchwork [2,of,2] config: populate sample repo-level and global-level sample hgrcs

login
register
mail settings
Submitter Jordi Gutiérrez Hermoso
Date Aug. 20, 2014, 10:29 p.m.
Message ID <e39cf145961bce03136d.1408573789@Iris>
Download mbox | patch
Permalink /patch/5537/
State Changes Requested
Headers show

Comments

Jordi Gutiérrez Hermoso - Aug. 20, 2014, 10:29 p.m.
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh@octave.org>
# Date 1408571553 14400
#      Wed Aug 20 17:52:33 2014 -0400
# Node ID e39cf145961bce03136dbf0dee1f0618dd2ba987
# Parent  8538451ded180c75c0245ca438df5ae2d02436ba
config: populate sample repo-level and global-level sample hgrcs

This adds a few examples of what you might want in a repo or
sytem-wide hgrc. Some paths for the repo and some extensions that make
sense system-wide.
Pierre-Yves David - Aug. 21, 2014, 7:28 a.m.
On 08/20/2014 03:29 PM, Jordi Gutiérrez Hermoso wrote:
> # HG changeset patch
> # User Jordi Gutiérrez Hermoso <jordigh@octave.org>
> # Date 1408571553 14400
> #      Wed Aug 20 17:52:33 2014 -0400
> # Node ID e39cf145961bce03136dbf0dee1f0618dd2ba987
> # Parent  8538451ded180c75c0245ca438df5ae2d02436ba
> config: populate sample repo-level and global-level sample hgrcs
>
> This adds a few examples of what you might want in a repo or
> sytem-wide hgrc. Some paths for the repo and some extensions that make
> sense system-wide.


Please add each config in a separated patch to ease discussion

>
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -174,11 +174,22 @@ username =
>
>       'local':
>   """# example repository config (see "hg help config" for more info)
> -""",
> +
> +[paths]
> +# Path aliases to other clones of this repo in URLs or filesystem paths,
> +# default = http://example.com/hg/example-repo
> +# myfork  = ssh://jdoe@example.net/hg/jdoes-fork
> +# myclone = /home/jdoe/jdoes-clone""",

same feedback than previous version. myfork//myclone does not make 
sense. missing default-push.

consider adding phases.publish

>       '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 =
> +# eol =""",

why did pickeol? somehting listed as feature of last resord. Just put 
the color, progress again a we'll be set.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -174,11 +174,22 @@  username =
 
     'local':
 """# example repository config (see "hg help config" for more info)
-""",
+
+[paths]
+# Path aliases to other clones of this repo in URLs or filesystem paths,
+# default = http://example.com/hg/example-repo
+# myfork  = ssh://jdoe@example.net/hg/jdoes-fork
+# myclone = /home/jdoe/jdoes-clone""",
 
     '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 =
+# eol =""",
 }
 
 # Commands start here, listed alphabetically