Feature Request: improve merging of .hgsub
Matt Mackall
mpm at selenic.com
Tue Aug 10 16:02:51 UTC 2010
On Tue, 2010-08-10 at 08:59 -0700, Chad Dombrova wrote:
> >
> > On the other side ... .hgsub is a user-edited file with a lot of flexibility in the syntax. Automatic merging of that file comes pretty close to automatic editing of hgrc - and I doubt that is something "we" like.
>
> hmmm... i hadn't realized that .hgsub was parsed using the config
> module. hgrc files serve a very different purpose than .hgsub files,
> so using the same mechanism to parse them seems like a very bad idea
> to me. do we really want people putting %include statements in
> their .hgsub file, which is then pushed and pulled around to repos
> where the include files don't exist? the added flexibility of the
> config syntax is actually dangerous overkill in this case.
>
> a simple split and strip parse method (e.g. line.strip().split('='))
> would be adequate to parse .hgsub.
And would be completely unextensible. As I've had plans to extend the
format since the beginning, I didn't go that direction.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list