changeset 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 c3a50e54b25d
children a4abe588d77f
files hgext/evolve.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)