# HG changeset patch # User Augie Fackler # Date 1518925178 18000 # Node ID 18106c3bc94a94a5ed0cef632c153c596fd4fe54 # Parent c95c8ab2e7ec13e4a35619d7f31cb2d7f9500b43 tags: don't feed both int and None to min() They're not comparable on Python 3, and we can just map None to 0. Differential Revision: https://phab.mercurial-scm.org/D2307 diff -r c95c8ab2e7ec -r 18106c3bc94a mercurial/tags.py --- a/mercurial/tags.py Sat Feb 17 22:39:12 2018 -0500 +++ b/mercurial/tags.py Sat Feb 17 22:39:38 2018 -0500 @@ -739,7 +739,7 @@ entry = bytearray(prefix + fnode) self._raw[offset:offset + _fnodesrecsize] = entry # self._dirtyoffset could be None. - self._dirtyoffset = min(self._dirtyoffset, offset) or 0 + self._dirtyoffset = min(self._dirtyoffset or 0, offset or 0) def write(self): """Perform all necessary writes to cache file.