Mercurial > hg
diff tests/test-revset.t @ 38522:54d7aaa243cc
revset: add partial support for ancestor(wdir())
It's easy, so let's make it happen. I'm not certain if 'wdir() &' should
be required. ancestors(wdir()) works without it, but ancestor(wdir()) doesn't
as of now. That's the issue of fullreposet.__contains__() vs __and__().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 29 Jun 2018 23:13:23 +0900 |
parents | 72621094505f |
children | 5460926352ee |
line wrap: on
line diff
--- a/tests/test-revset.t Sat Jun 23 13:19:03 2018 +0100 +++ b/tests/test-revset.t Fri Jun 29 23:13:23 2018 +0900 @@ -1813,6 +1813,16 @@ 6 7 2147483647 + $ hg debugrevspec '0:wdir() & ancestor(wdir())' + 2147483647 + $ hg debugrevspec '0:wdir() & ancestor(.:wdir())' + 4 + $ hg debugrevspec '0:wdir() & ancestor(wdir(), wdir())' + 2147483647 + $ hg debugrevspec '0:wdir() & ancestor(wdir(), tip)' + 4 + $ hg debugrevspec 'null:wdir() & ancestor(wdir(), null)' + -1 $ hg debugrevspec 'wdir()~0' 2147483647 $ hg debugrevspec 'p1(wdir())'