Mercurial > hg-stable
changeset 24014:7d9367de2654
obsolete: make optional offset parameter to fm*readmarkers required
It was always passed by the only callsite, so just make it required.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 20 Jan 2015 09:38:22 -0500 |
parents | bc75f8750cde |
children | e2bf959a5a0d |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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