hgext/patchbomb.py
changeset 40029 e2697acd9381
parent 39118 1415b78869eb
child 40293 c303d65d2e34
--- a/hgext/patchbomb.py	Tue Oct 02 12:43:54 2018 -0700
+++ b/hgext/patchbomb.py	Wed Oct 03 10:27:44 2018 -0700
@@ -187,12 +187,12 @@
     elif introconfig == 'never':
         intro = False
     elif introconfig == 'auto':
-        intro = 1 < number
+        intro = number > 1
     else:
         ui.write_err(_('warning: invalid patchbomb.intro value "%s"\n')
                      % introconfig)
         ui.write_err(_('(should be one of always, never, auto)\n'))
-        intro = 1 < number
+        intro = number > 1
     return intro
 
 def _formatflags(ui, repo, rev, flags):
@@ -663,7 +663,7 @@
                 if not known[idx]:
                     missing.append(h)
             if missing:
-                if 1 < len(missing):
+                if len(missing) > 1:
                     msg = _('public "%s" is missing %s and %i others')
                     msg %= (publicurl, missing[0], len(missing) - 1)
                 else: