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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Aug 21 02:28:48 CDT 2014



On 08/20/2014 03:29 PM, Jordi Gutiérrez Hermoso wrote:
> # HG changeset patch
> # User Jordi Gutiérrez Hermoso <jordigh at 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.



-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list