branch | stable |
changeset 38772 | c89e2fb207a1 |
parent 38683 | ddd2165438cd |
child 38773 | f736fdbe546a |
--- a/mercurial/phases.py Fri Aug 17 17:51:06 2018 +0200 +++ b/mercurial/phases.py Fri Aug 17 16:00:32 2018 -0700 @@ -664,6 +664,8 @@ * `heads`: define the first subset * `roots`: define the second we subtract from the first""" + if not heads or not roots: + return heads repo = repo.unfiltered() revs = repo.revs('heads(::%ln - (%ln::%ln))', heads, roots, heads) return pycompat.maplist(repo.changelog.node, revs)