diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1928,7 +1928,8 @@ def _list(repo, subset, x): r = repo[t].rev() if r in seen: continue - if r in subset: + if (r in subset + or r == node.nullrev and isinstance(subset, fullreposet)): ls.append(r) seen.add(r) return baseset(ls)