[RFC] revision sets
Benoit Boissinot
benoit.boissinot at ens-lyon.org
Mon Apr 19 18:53:56 CDT 2010
On Mon, Apr 19, 2010 at 05:32:41PM -0500, Matt Mackall wrote:
> I've been talking about expanding this into a more powerful system that
> would allow specifying dates, keywords, branches, etc. My current
> thought is to make it look like this:
>
> hg log -r "branch(foo) and keyword(bar) and date(mar 1 - apr 1)"
>
> Which would be identical to:
>
> hg log -b foo -k bar -d "mar 1 - apr 1"
>
> but would magically work anywhere -r ranges were accepted (export, push,
> etc.).
for push, it's a bit different. If a range is specified (instead of a
list of revs), then they should be connected (no "holes" in the ranges).
>
> Further, we'd be able to add lots of interesting primitives:
>
> hg log -r "descendant(parent2(1.0)) and ancestor(2.0) and
> author(george) and sorted(date) and reversed()"
We'd need some way to specify interesting topological orderings too, I
guess.
Being able to mix queries with other repos, would be interesting too
(e.g. only match from outgoing csets).
regards,
Benoit
--
:wq
More information about the Mercurial-devel
mailing list