cleanup: avoid a Yoda condition
authorSushil khanchi <sushilkhanchi97@gmail.com>
Wed, 31 Oct 2018 14:08:56 +0530
changeset 4250 781d058d14f9
parent 4249 0d9697367fff
child 4251 a5ec7652c4f4
cleanup: avoid a Yoda condition
hgext3rd/evolve/__init__.py
--- 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,