[patch 4/4] This adds support for an [extensions] section to hgrc. This has the form of:

Chris Mason mason at suse.com
Sat Aug 13 07:00:35 CDT 2005


Matt Mackall wrote:
> On Fri, Aug 12, 2005 at 01:55:55PM -0400, Chris Mason wrote:
> 
>>On Friday 12 August 2005 13:18, Bryan O'Sullivan wrote:
>>
>>
>>>Here's the approach I'd prefer to see.  This changes the way
>>>repositories are created so that you can customise it.  Just modify the
>>>contents of hg.protocols, and you're done.  In your case, you'd want to
>>>subclass localrepository, then set protocols['file'] to return one of
>>>your new objects.
>>
>>I have mixed feelings on this one...Matt, how would you rather see it work?
> 
> 
> I kind of like it, though I'd rather see lambdas and some other minor
> details. Any specific objections?
> 

Mostly I don't like the requirement of subclassing off localrepository.
 But I guess this is more of a grumpy C programmer objection than
anything else.

I wanted to make sure you would ack the change before adapting my code
to it ;)  After using the extension form of mq for a few days, I like
the concept enough that I'd be happy with almost any implementation.

-chris


More information about the Mercurial mailing list