##// END OF EJS Templates
readmarkers: combine parent conditionals
Matt Mackall -
r23791:2e58b062 default
parent child Browse files
Show More
@@ -293,9 +293,6 b' def _fm1readmarkers(data, off=0):'
293 fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize])
293 fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize])
294 off += _fm1fsize
294 off += _fm1fsize
295 ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata
295 ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata
296 # extract the number of parents information
297 if numpar == _fm1parentnone:
298 numpar = None
299 # build the date tuple (upgrade tz minutes to seconds)
296 # build the date tuple (upgrade tz minutes to seconds)
300 date = (seconds, tz * 60)
297 date = (seconds, tz * 60)
301 _fm1node = _fm1nodesha1
298 _fm1node = _fm1nodesha1
@@ -310,7 +307,7 b' def _fm1readmarkers(data, off=0):'
310 sucs = _unpack(_fm1node * numsuc, data[off:off + s])
307 sucs = _unpack(_fm1node * numsuc, data[off:off + s])
311 off += s
308 off += s
312 # read parents
309 # read parents
313 if numpar is None:
310 if numpar == _fm1parentnone:
314 parents = None
311 parents = None
315 elif numpar == 0:
312 elif numpar == 0:
316 parents = ()
313 parents = ()
General Comments 0
You need to be logged in to leave comments. Login now