discovery: filter null from the discovery revset
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 30 Jan 2015 20:29:33 +0000
changeset 1196 9e3f332f7630
parent 1195 af9fd422adbb
child 1197 0d15d461a316
child 1200 242792d1e40a
discovery: filter null from the discovery revset If there is nothing in common, common will be "null" and the revset will now returns "-1" crashing the discovery process. We filter out the null revision to prevent that.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Jan 30 19:01:23 2015 +0000
+++ b/hgext/evolve.py	Fri Jan 30 20:29:33 2015 +0000
@@ -2575,7 +2575,7 @@
     cl = pullop.repo.changelog
     remote = pullop.remote
     unfi = repo.unfiltered()
-    revs = unfi.revs('::%ln', pullop.common)
+    revs = unfi.revs('::(%ln - null)', pullop.common)
     common = [nullid]
     if remote.capable('_evoext_obshash_0'):
         obsexcmsg(repo.ui, "looking for common markers in %i nodes\n"