D5583: discovery: using the new basesheads()
gracinet (Georges Racinet)
phabricator at mercurial-scm.org
Wed Jan 16 07:44:43 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2a8782cc2e16: discovery: using the new basesheads() (authored by gracinet, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5583?vs=13217&id=13253
REVISION DETAIL
https://phab.mercurial-scm.org/D5583
AFFECTED FILES
mercurial/setdiscovery.py
CHANGE DETAILS
diff --git a/mercurial/setdiscovery.py b/mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py
+++ b/mercurial/setdiscovery.py
@@ -229,9 +229,7 @@
"""the heads of the known common set"""
# heads(common) == heads(common.bases) since common represents
# common.bases and all its ancestors
- # The presence of nullrev will confuse heads(). So filter it out.
- return set(self._repo.revs('heads(%ld)',
- self._common.bases - {nullrev}))
+ return self._common.basesheads()
def findcommonheads(ui, local, remote,
initialsamplesize=100,
To: gracinet, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list