Implementation of Indexes Extension

Dennis Brakhane brakhane at
Tue Feb 14 16:29:54 CST 2012

On Tue, Feb 14, 2012 at 5:09 PM, Alexander Sauta <demosito at> wrote:
> I've briefly looked through the description and didn't quite get why index
> concept is better than mq. I mean, users like Mercurial for the absence of
> such counter-intuitive and complex stuff in core distribution, and if they
> want some extra power, they just turn on mq, which is IMHO a way better than
> Git index.

There are two things the the index does better than MQ:

1. The ability to add only certain changes to a file (qrefresh only
supports adding everything)
2. The ability to incrementally increase or decrease the stuff that is
contained in the changes:

suppose i made changes to all files a, b, c, ..., z, but my changeset
should contain only a,c,f,h,j,l,n,q and t.

I now do "qref a c f h j l q t" (note that i forgot "n")

If I notice it right away, I cannot write something like "hg qref +n",
i have to list every file again "qref a c f h j l n q t", the chance
being not small that I again forget a different file (and when the
file names are actually long paths instead of single letters, it gets
even harder to check that you did not forget anything)

More information about the Mercurial-devel mailing list