diff hgext/evolve.py @ 1440:afe46c3b15db

evolve: clarify code in _singlesuccessor Before this patch we were not very explicit with this while condition in _singlesuccessor. This patch makes it more legible.
author Laurent Charignon <lcharignon@fb.com>
date Mon, 22 Jun 2015 17:46:32 -0700
parents 20a3b0b27bfe
children a4abe588d77f
line wrap: on
line diff
--- a/hgext/evolve.py	Tue Jun 23 16:50:39 2015 -0700
+++ b/hgext/evolve.py	Mon Jun 22 17:46:32 2015 -0700
@@ -1364,7 +1364,7 @@
     ui = repo.ui
     newer = obsolete.successorssets(repo, obs.node())
     # search of a parent which is not killed
-    while not newer or newer == [()]:
+    while not newer:
         ui.debug("stabilize target %s is plain dead,"
                  " trying to stabilize on its parent\n" %
                  obs)