Implementation of Indexes Extension

Dennis Brakhane brakhane at googlemail.com
Wed Feb 15 13:36:56 CST 2012


On Wed, Feb 15, 2012 at 3:46 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Tue, 2012-02-14 at 23:29 +0100, Dennis Brakhane wrote:
>> On Tue, Feb 14, 2012 at 5:09 PM, Alexander Sauta <demosito at gmail.com> 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)
>
> hg qref -i (with record extension)

Nice! I knew about the record extension, but it never occured to me it
might modify qref as well. (And I forgot my hg on my windows box was
only 1.8.4, which doesn't seem to have that option yet)

> hg qref -s <file to add>
> hg qref -s -X <file to remove>

OK, that's got to be one of the worst named options in hg, worthy of
git ;) It is documented all right, but my brain just always skipped it
when it read "--short". Out of curiosity, why is it named "short"?

> You owe the oracle one patch containing qrefresh usage examples.

I might actually do that.


More information about the Mercurial-devel mailing list