[PATCH 1 of 3] config: give more fine-tuned sample hgrcs to this command

Matt Mackall mpm at selenic.com
Thu Sep 11 12:37:22 CDT 2014


On Sun, 2014-08-24 at 19:51 -0400, Jordi Gutiérrez Hermoso wrote:
> diff --git a/mercurial/config.py b/mercurial/config.py
> --- a/mercurial/config.py
> +++ b/mercurial/config.py
> @@ -9,6 +9,31 @@ from i18n import _
>  import error, util
>  import os, errno
>  
> +samplehgrcs = {
> +    'user':
> +"""# example user config (see "hg help config" for more info)
> +[ui]
> +# name and email, e.g.
> +# username = Jane Doe <jdoe at example.com>

I moved these to ui, as config is intentionally completely generic code
and thus this data is at the wrong layer.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list