obsolete: make optional offset parameter to fm*readmarkers required
authorAugie Fackler <augie@google.com>
Tue, 20 Jan 2015 09:38:22 -0500
changeset 24014 7d9367de2654
parent 24012 bc75f8750cde
child 24015 e2bf959a5a0d
obsolete: make optional offset parameter to fm*readmarkers required It was always passed by the only callsite, so just make it required.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Tue Feb 03 17:54:01 2015 -0600
+++ b/mercurial/obsolete.py	Tue Jan 20 09:38:22 2015 -0500
@@ -146,7 +146,7 @@
 _fm0fsize = _calcsize(_fm0fixed)
 _fm0fnodesize = _calcsize(_fm0node)
 
-def _fm0readmarkers(data, off=0):
+def _fm0readmarkers(data, off):
     # Loop on markers
     l = len(data)
     while off + _fm0fsize <= l:
@@ -285,7 +285,7 @@
 _fm1metapair = 'BB'
 _fm1metapairsize = _calcsize('BB')
 
-def _fm1readmarkers(data, off=0):
+def _fm1readmarkers(data, off):
     # make some global constants local for performance
     noneflag = _fm1parentnone
     sha2flag = usingsha256