[PATCH RFC] clone: copy hgrc paths if source and dest are local

Greg Ward greg-hg at gerg.ca
Mon Jun 14 13:41:19 UTC 2010


On Sun, Jun 13, 2010 at 2:13 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> It's not possible to setup subgroups of global paths though.
>
> For example, when doing a GUI (TortoiseHg in my case), we show a list of
> all paths available (repo.ui.configitems('paths')) for a repo, which
> then includes all global paths (let's assume there is one global
> 'mercurial.ini' or 'hgrc' for the user with those global paths).

I like the proposed feature, but then I never configure [paths]
outside of a per-repo hgrc.  I prefer manually copying [paths] around
to having the wrong path available.

But if you do configure [paths] in you ~/.hgrc (or Mercurial.ini,
whatever), here's an idea: "hg showconfig --debug" knows where each
config setting comes from.  The information is in there somewhere.  So
could you use that when cloning to copy only the [paths] from
src_repo's local config?

Greg



More information about the Mercurial-devel mailing list