diff --git a/mercurial/revset.py b/mercurial/revset.py
index 6df4bc39f6828e8aa74b33e51bc72eac621db2fe_bWVyY3VyaWFsL3JldnNldC5weQ==..ac494b087febf0e00a84ff2a699c0690be2c453c_bWVyY3VyaWFsL3JldnNldC5weQ== 100644
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -2500,7 +2500,7 @@
         return len(self._list)
 
     def __nonzero__(self):
-        return bool(self._r1 or self._r2)
+        return bool(self._r1) or bool(self._r2)
 
     @util.propertycache
     def _list(self):