Show More
@@ -238,18 +238,29 b' def parse_docket(revlog, data, use_pendi' | |||
|
238 | 238 | """given some docket data return a docket object for the given revlog""" |
|
239 | 239 | header = S_HEADER.unpack(data[: S_HEADER.size]) |
|
240 | 240 | offset = S_HEADER.size |
|
241 | version_header = header[0] | |
|
242 | index_uuid_size = header[1] | |
|
241 | ||
|
242 | iheader = iter(header) | |
|
243 | ||
|
244 | version_header = next(iheader) | |
|
245 | ||
|
246 | index_uuid_size = next(iheader) | |
|
243 | 247 | index_uuid = data[offset : offset + index_uuid_size] |
|
244 | 248 | offset += index_uuid_size |
|
245 | data_uuid_size = header[2] | |
|
249 | ||
|
250 | data_uuid_size = next(iheader) | |
|
246 | 251 | data_uuid = data[offset : offset + data_uuid_size] |
|
247 | 252 | offset += data_uuid_size |
|
248 | index_size = header[3] | |
|
249 |
|
|
|
250 | data_size = header[5] | |
|
251 |
pending_ |
|
|
252 | default_compression_header = header[7] | |
|
253 | ||
|
254 | index_size = next(iheader) | |
|
255 | ||
|
256 | pending_index_size = next(iheader) | |
|
257 | ||
|
258 | data_size = next(iheader) | |
|
259 | ||
|
260 | pending_data_size = next(iheader) | |
|
261 | ||
|
262 | default_compression_header = next(iheader) | |
|
263 | ||
|
253 | 264 | docket = RevlogDocket( |
|
254 | 265 | revlog, |
|
255 | 266 | use_pending=use_pending, |
General Comments 0
You need to be logged in to leave comments.
Login now