[PATCH 7 of 8 V2] revset: add origins() predicate
Noel Grandin
noel at peralex.com
Mon Jun 25 03:51:39 CDT 2012
On 2012-06-22 22:08, Matt Mackall wrote:
>
> Then we have a terminology problem.
>
> I read origin(x) as "the origin of x", not "things that have x as an
> origin". Now, granted, there's no perfectly consistent way to convert
> f(x) to English:
>
> heads(x): heads of the set x
> ancestors(x): ancestors of x
> parents(x): parents of x
> branch(x): all revs on (branch x OR branch of rev x)
> converted(x): converted FROM x [1]
>
That's why I like including the preposition in my methods names, so I
would use:
heads_of(x)
ancestors_of(x)
parents_of(x)
on_branches(x)
converted_from(x)
Disclaimer: http://www.peralex.com/disclaimer.html
More information about the Mercurial-devel
mailing list