comparison mercurial/obsolete.py @ 33670:e5f8c7baa729

obsolete: reuse _fm1metapair for computing _fm1metapairsize It's evaluated at import time, so it seems silly to not reuse the constant name.
author Augie Fackler <augie@google.com>
date Mon, 24 Jul 2017 10:21:23 -0400
parents 5d3ba4395288
children 388901a15bfa
comparison
equal deleted inserted replaced
33667:03039ff3082b 33670:e5f8c7baa729
312 _fm1fsize = _calcsize(_fm1fixed) 312 _fm1fsize = _calcsize(_fm1fixed)
313 _fm1parentnone = 3 313 _fm1parentnone = 3
314 _fm1parentshift = 14 314 _fm1parentshift = 14
315 _fm1parentmask = (_fm1parentnone << _fm1parentshift) 315 _fm1parentmask = (_fm1parentnone << _fm1parentshift)
316 _fm1metapair = 'BB' 316 _fm1metapair = 'BB'
317 _fm1metapairsize = _calcsize('BB') 317 _fm1metapairsize = _calcsize(_fm1metapair)
318 318
319 def _fm1purereadmarkers(data, off, stop): 319 def _fm1purereadmarkers(data, off, stop):
320 # make some global constants local for performance 320 # make some global constants local for performance
321 noneflag = _fm1parentnone 321 noneflag = _fm1parentnone
322 sha2flag = usingsha256 322 sha2flag = usingsha256