comparison 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
comparison
equal deleted inserted replaced
38521:c1a7bbf9984d 38522:54d7aaa243cc
1811 4 1811 4
1812 5 1812 5
1813 6 1813 6
1814 7 1814 7
1815 2147483647 1815 2147483647
1816 $ hg debugrevspec '0:wdir() & ancestor(wdir())'
1817 2147483647
1818 $ hg debugrevspec '0:wdir() & ancestor(.:wdir())'
1819 4
1820 $ hg debugrevspec '0:wdir() & ancestor(wdir(), wdir())'
1821 2147483647
1822 $ hg debugrevspec '0:wdir() & ancestor(wdir(), tip)'
1823 4
1824 $ hg debugrevspec 'null:wdir() & ancestor(wdir(), null)'
1825 -1
1816 $ hg debugrevspec 'wdir()~0' 1826 $ hg debugrevspec 'wdir()~0'
1817 2147483647 1827 2147483647
1818 $ hg debugrevspec 'p1(wdir())' 1828 $ hg debugrevspec 'p1(wdir())'
1819 7 1829 7
1820 $ hg debugrevspec 'p2(wdir())' 1830 $ hg debugrevspec 'p2(wdir())'