hg diff --branch

Stepan Koltsov yozh at mx1.ru
Sun Feb 15 08:18:26 CST 2009


On Sun, Feb 15, 2009 at 17:02, Martin Geisler <mg at daimi.au.dk> wrote:
>> On Sun, Feb 15, 2009 at 16:27, Martin Geisler <mg at daimi.au.dk> wrote:
>>>>> 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::.
>>>
>>> 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)
>>
>> braces are special symbols in shell. In bash
>>
>> echo parent(6)
>>
>> produces error. It must be written as:
>>
>> echo 'parent(6)'
>
> Good point, I hadn't thought of that.
>
>> :: does not clash with : , because revision cannot be empty string.
>
> But can you quickly tell me what
>
>  ancestor::parent::a:branch-base::b
>
> does?

Then probably

a::b should be equivalent to a(b) and both syntax should be supported.

Isn't it over-engineered?

S.


More information about the Mercurial-devel mailing list