# HG changeset patch # User Pierre-Yves David # Date 1516070071 -3600 # Node ID 740e1267be6f475352a6d364b23b4ec35266dab6 # Parent f4ea9652661d682c9d221c434dc57eea82b7692a compat: fix argument check for marker reading The previous check was broken for 4.2 diff -r f4ea9652661d -r 740e1267be6f 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