##// END OF EJS Templates
obsolete: extract the part of _readmarkers specific to format version 0...
Pierre-Yves David -
r22328:fba8c1a4 default
parent child Browse files
Show More
@@ -145,7 +145,10 b' def _readmarkers(data):'
145 if diskversion != _fm0version:
145 if diskversion != _fm0version:
146 raise util.Abort(_('parsing obsolete marker: unknown version %r')
146 raise util.Abort(_('parsing obsolete marker: unknown version %r')
147 % diskversion)
147 % diskversion)
148 return _fm0readmarkers(data, off)
148
149
150 def _fm0readmarkers(data, off=0):
151 """Read and enumerate markers from raw data in format version 0"""
149 # Loop on markers
152 # Loop on markers
150 l = len(data)
153 l = len(data)
151 while off + _fm0fsize <= l:
154 while off + _fm0fsize <= l:
General Comments 0
You need to be logged in to leave comments. Login now