hg diff --branch

Stepan Koltsov yozh at mx1.ru
Sun Feb 15 07:05:17 CST 2009


On Sun, Feb 15, 2009 at 09:20, Matt Mackall <mpm at selenic.com> wrote:
> On Fri, 2009-02-13 at 19:56 +0300, Stepan Koltsov 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::.

dot means working directory current revision?

branch-base:: means "revision of closest fork above specified revision"?

If so, another specifier needed: named-branch-base:: because named
branches could have forks with multiple branches sharing same branch
name.

> 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.
>
> All that's needed is to add some extra smarts to cmdutil:revpair and
> friends.

I'll make a patch today.

S.


More information about the Mercurial-devel mailing list