Mercurial > hg-stable
changeset 42456:d279e4f453c4
revset: use nullrev constant in merge()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 09 Jun 2019 22:18:22 +0900 |
parents | aae93201f758 |
children | 43c8f72184f4 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri May 31 22:38:04 2019 -0700 +++ b/mercurial/revset.py Sun Jun 09 22:18:22 2019 +0900 @@ -1361,7 +1361,8 @@ # i18n: "merge" is a keyword getargs(x, 0, 0, _("merge takes no arguments")) cl = repo.changelog - return subset.filter(lambda r: cl.parentrevs(r)[1] != -1, + nullrev = node.nullrev + return subset.filter(lambda r: cl.parentrevs(r)[1] != nullrev, condrepr='<merge>') @predicate('branchpoint()', safe=True)