Submitter | Boris Feld |
---|---|
Date | Aug. 17, 2018, 9:42 p.m. |
Message ID | <0fee760d9736505d2315.1534542135@FB-lair> |
Download | mbox | patch |
Permalink | /patch/33835/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -664,6 +664,8 @@ def newheads(repo, heads, roots): * `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)