evolve: clarify code in _singlesuccessor
authorLaurent Charignon <lcharignon@fb.com>
Mon, 22 Jun 2015 17:46:32 -0700
changeset 1440 afe46c3b15db
parent 1439 c3a50e54b25d
child 1441 a4abe588d77f
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.
hgext/evolve.py
--- 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)