# HG changeset patch # User Manuel Jacob # Date 2020-06-16 12:38:50 # Node ID 9e5f598fd29b0bc336d9d1b00d6888cb8a694be6 # Parent 423e20c78e6d8b57fe92ff40126f649935d66957 py3: fix comparison between int and None If stop is None, the condition was always false on Python 2, as None compares smaller than ints. Therefore we make the condition false if stop is None. diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -817,7 +817,7 @@ class svn_source(converter_source): # We do not know the latest changed revision, # keep the first one with changed paths. break - if revnum <= stop: + if stop is not None and revnum <= stop: break for p in paths: