hg diff --branch
Martin Geisler
mg at daimi.au.dk
Sun Feb 15 07:27:17 CST 2009
Matt Mackall <mpm at selenic.com> writes:
> On Fri, 2009-02-13 at 19:56 +0300, Stepan Koltsov wrote:
>> Hi, all...
>>
>> please review my patch. I really need this functionality every day :)
>
> I think the functionality is great, however I don't like the approach.
> We've already got too many options. Imagine instead the power of an
> improved revision specification syntax:
>
> hg diff -r branch-base::.
>
> That's the direction we should be going in. For starters, it's more
> powerful: I can find the base of any branch or any revision. But even
> better, I can use it in any command wherever a revision specifier is
> called for. And it obviously generalizes to other extremely useful
> things like parent::. or ancestor::a:b, etc.
I think the "::" syntax clashes a bit too much with the ":" range
syntax, and I would suggest using normal parenthesis as in function
calls:
parent(.)
ancestor(a,b)
I think that will be easier to parse, especially in more complicated
expressions.
--
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