changeset 4250:781d058d14f9

cleanup: avoid a Yoda condition
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Wed, 31 Oct 2018 14:08:56 +0530
parents 0d9697367fff
children a5ec7652c4f4
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Wed Oct 31 14:06:17 2018 +0530
+++ b/hgext3rd/evolve/__init__.py	Wed Oct 31 14:08:56 2018 +0530
@@ -1188,7 +1188,7 @@
                             'do you want --evolve?)\n')
                     ui.warn(msg % len(aspchildren))
                 return 1
-            elif 1 < len(aspchildren):
+            elif len(aspchildren) > 1:
                 cheader = _("ambiguous next (unstable) changeset, choose one to"
                             " evolve and update:")
                 choosedrev = utility.revselectionprompt(ui, repo,