[PATCH 0 of 3] Add option for operating on queue repository

Matt Mackall mpm at selenic.com
Wed Jul 15 15:06:13 CDT 2009


On Wed, 2009-07-15 at 02:06 -0700, Dan Villiom Podlaski Christiansen
wrote:
> On 13/07/2009, Matt Mackall <mpm at selenic.com> wrote:
> > Here's another alternative:
> >
> > hg -R mq push/pull/in/out..
> >
> > where 'mq' is a magic name that gets added to 'hg paths' when mq is
> > enabled (and is of course equal to .hg/patches). We already have a
> > precedent for adding magic paths in the zeroconf modules.
> 
> I haven't used the Zeroconf extension,[1] but I suspect there's a
> major difference to your proposal: the ‘mq’ alias would be fixed and
> present whenever the extension is loaded, and the user cannot change
> it. After all, directories named ‘mq’ do exist out there.[2]

And people might also want to use tag names like qtop and qparent. Mq is
already messing with namespaces.

My proposal is a tradeoff between:

- adding an option to -lots- of commands (and the related maintenance
hassle of making sure we add -Q to all new commands where it might make
sense) and effectively burning -Q for any other use for any other
command or extension

- adding a single magical name in the [paths] namespace only when mq is
enabled

While namespace collisions are best avoided, there's actually more
namespace pollution in the first approach than in the second.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list