[PATCH V2] config: give a more detailed sample repo config

Jordi Gutiérrez Hermoso jordigh at octave.org
Mon Oct 6 15:02:43 CDT 2014


On Fri, 2014-10-03 at 15:39 -0500, Matt Mackall wrote:
> We're not creating the file on init, but we are on clone.
> 
> It seems that we've got one message in hg.py, another in ui.py. We need
> to unify them and create the file in all of the following circumstances:
> 
> - init
> - clone (+ add default url)
> - conf -l (if not already present)

I'm working on this. It's pretty easy to fixx the clone one. The init
one is trickier, because then I'd have to worry about localrepo,
sshrepo, and maybe subrepo, all of which accept create=True (and with
sshrepo, it gets complicated as the local and remote Mercurials might
not agree).

Can we just leave it hgrcless for init? Since the idea is that you get
these sample hgrc files if you're using `hgrc config --local`, I think
creating the hgrc just-in-time is ok.




More information about the Mercurial-devel mailing list