MQ usability

Peter Williams pwil3058 at
Sat Aug 15 01:03:07 CDT 2009

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:

qrefresh = --git

in their ~/hgrc (or equivalent).

Peter Williams                                   pwil3058 at

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce

More information about the Mercurial-devel mailing list