changeset 23284:8d47c212b0dd

revlog: make a predicate clearer with parens
author Siddharth Agarwal <sid0@fb.com>
date Tue, 11 Nov 2014 21:39:56 -0800
parents b04263c38a92
children 6cc1f388ac80
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Wed Nov 05 13:06:24 2014 +0000
+++ b/mercurial/revlog.py	Tue Nov 11 21:39:56 2014 -0800
@@ -1255,7 +1255,7 @@
         else:
             textlen = len(text)
         if (d is None or dist > textlen * 2 or
-            self._maxchainlen and chainlen > self._maxchainlen):
+            (self._maxchainlen and chainlen > self._maxchainlen)):
             text = buildtext()
             data = self.compress(text)
             l = len(data[1]) + len(data[0])