Skip to content
Snippets Groups Projects
Commit 9e5f598f authored by Manuel Jacob's avatar Manuel Jacob
Browse files

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.
parent 423e20c7
No related branches found
No related tags found
No related merge requests found
......@@ -817,7 +817,7 @@
# 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment