[PATCH] Tweaks to MQ user interface

Martin Geisler mg at lazybytes.net
Fri Jul 3 01:49:47 CDT 2009


Greg Ward <greg-hg at gerg.ca> writes:

> On Thu, Jul 2, 2009 at 4:31 AM, Martin Geisler<mg at lazybytes.net> wrote:
>> I don't know about the last patch -- I'm quite happy with my mq shell
>> alias myself, but I can see that such an alias is not the best
>> solution.
>>
>> For those who haven't seen the trick:
>>
>>  alias mq="hg -R $(hg root)/.hg/patches"
>
> I started out with that alias, but got annoyed by the inability to run
> 'mq diff series'.  So now I use
>
>   mq='hg --cwd $(hg root)/.hg/patches'
>
> and I'm fairly happy with it.

Ah, nice :-)

> How about, instead of expecting people to find or figure out the
> clever alias trick *or* stuffing a new -Q option into every command,
> add a new script 'mq'.  It would probably be very similar to the 'hg'
> script, but with a little extra: open the main repo, then open
> .hg/patches under it.  Possibly chdir there to satisfy my "mq diff
> series" requirement.  Probably exit with an error if MQ not enabled.
>
> Anyone like the sound of that?

I obviously do -- it would make Mercurial work the way I'm used to out
of the box, and be platform independent too.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.



More information about the Mercurial-devel mailing list