Submitter | Boris Feld |
---|---|
Date | Aug. 21, 2018, 11:35 a.m. |
Message ID | <72bcdb7b477e2195c0c4.1534851327@FB-lair> |
Download | mbox | patch |
Permalink | /patch/33932/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -678,8 +678,6 @@ def newheads(repo, heads, roots): # The logic operated on revisions, convert arguments early for convenience new_heads = set(rev(n) for n in heads if n != nullid) roots = [rev(n) for n in roots] - if not heads or not roots: - return heads # compute the area we need to remove affected_zone = repo.revs("(%ld::%ld)", roots, new_heads) # heads in the area are no longer heads