changeset 3409:740e1267be6f

compat: fix argument check for marker reading The previous check was broken for 4.2
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 16 Jan 2018 03:34:31 +0100
parents f4ea9652661d
children bf6b859807ba d3a17c67f85c
files hgext3rd/evolve/obscache.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obscache.py	Tue Jan 16 02:21:44 2018 +0100
+++ b/hgext3rd/evolve/obscache.py	Tue Jan 16 03:34:31 2018 +0100
@@ -98,7 +98,7 @@
 
     return obsstore
 
-if obsolete._fm0readmarkers.__code__.co_argcount > 1:
+if obsolete._fm0readmarkers.__code__.co_argcount > 2:
     # hg-4.3+ has the "offset" parameter, and _fm?readmarkers also have an
     # extra "stop" parameter
     # Note that _readmarkers is wrapped by @util.nogc, so its co_argcount is