compat: fix argument check for marker reading
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 16 Jan 2018 03:34:31 +0100
changeset 3409 740e1267be6f
parent 3408 f4ea9652661d
child 3416 bf6b859807ba
child 3417 d3a17c67f85c
compat: fix argument check for marker reading The previous check was broken for 4.2
hgext3rd/evolve/obscache.py
--- 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