evolve: do not even try to pull if all remote markers are known
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 08 Aug 2014 18:01:02 -0700
changeset 1041 7632f1f79946
parent 1040 640f3280559e
child 1042 86bd794f6037
evolve: do not even try to pull if all remote markers are known previously we were explicitly pulling an empty bundle.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Aug 08 17:49:22 2014 -0700
+++ b/hgext/evolve.py	Fri Aug 08 18:01:02 2014 -0700
@@ -2658,6 +2658,10 @@
     ui = pullop.repo.ui
     obsexcmsg(ui, "pull obsolescence markers\n", True)
     boundaries = _buildpullobsmerkersboundaries(pullop)
+    if not set(boundaries['heads']) - set(boundaries['common']):
+        obsexcmsg(ui, "nothing to pull\n")
+        return None
+
     new = 0
 
     if b2xpull: