MQ usability

TK Soh teekaysoh at gmail.com
Sat Aug 15 05:43:41 CDT 2009


On Sat, Aug 15, 2009 at 6:03 AM, Peter Williams<pwil3058 at bigpond.net.au> wrote:
> On 15/08/09 13:13, Stuart W. Marks wrote:
>> Matt Mackall wrote:
>>> On Tue, 2009-08-11 at 05:48 +0000, TK Soh wrote:
>>>> Sorry to bring up the old topic. I wonder if it's possible to make
>>>> --git format the default?
>>> No. Ask again when standard patch(1) accepts git patches.
>>
>> Certainly it would be incompatible to change "hg diff" to emit git patches by
>> default.
>>
>> But for MQ, the patch is mainly an internal storage format.
>
> No, it's not.  In a lot of cases, MQ is being used to generate patch
> sets for distribution to users who aren't necessarily using MQ to manage
> them at there end.
>
>> Maybe MQ could use
>> git patches by default. Or, at least MQ could switch to git format when the
>> need arises:
>>
>> $ hg qnew ...
>> $ chmod +x foobar
>> $ hg qrefresh
>> (mode change detected, switching to git diff format)
>> $
>>
>> The current situation, where MQ silently loses information unless --git is
>> specified, is pretty unfriendly.
>
> It should be remembered that anyone who wants --git to be the default
> for their MQ patches just has to put:
>
> [defaults]
> qrefresh = --git
>
> in their ~/hgrc (or equivalent).

Isn't '[defaults]' section deprecated in recent release of mercurial?



More information about the Mercurial-devel mailing list