Show More
@@ -9,7 +9,6 b' from __future__ import absolute_import' | |||
|
9 | 9 | |
|
10 | 10 | from ..node import sha1nodeconstants |
|
11 | 11 | from .constants import ( |
|
12 | COMP_MODE_INLINE, | |
|
13 | 12 | INDEX_ENTRY_V0, |
|
14 | 13 | ) |
|
15 | 14 | from ..i18n import _ |
@@ -23,7 +22,6 b' from .. import (' | |||
|
23 | 22 | ) |
|
24 | 23 | |
|
25 | 24 | from . import ( |
|
26 | flagutil, | |
|
27 | 25 | nodemap as nodemaputil, |
|
28 | 26 | ) |
|
29 | 27 | |
@@ -39,19 +37,14 b' def gettype(q):' | |||
|
39 | 37 | class revlogoldindex(list): |
|
40 | 38 | rust_ext_compat = 0 |
|
41 | 39 | entry_size = INDEX_ENTRY_V0.size |
|
42 | null_item = ( | |
|
43 | 0, | |
|
44 | 0, | |
|
45 | 0, | |
|
46 | -1, | |
|
47 | -1, | |
|
48 | -1, | |
|
49 | -1, | |
|
50 | sha1nodeconstants.nullid, | |
|
51 | 0, | |
|
52 | 0, | |
|
53 | COMP_MODE_INLINE, | |
|
54 | COMP_MODE_INLINE, | |
|
40 | null_item = revlogutils.entry( | |
|
41 | data_offset=0, | |
|
42 | data_compressed_length=0, | |
|
43 | data_delta_base=node.nullrev, | |
|
44 | link_rev=node.nullrev, | |
|
45 | parent_rev_1=node.nullrev, | |
|
46 | parent_rev_2=node.nullrev, | |
|
47 | node_id=sha1nodeconstants.nullid, | |
|
55 | 48 | ) |
|
56 | 49 | |
|
57 | 50 | @property |
@@ -137,18 +130,14 b' def parse_index_v0(data, inline):' | |||
|
137 | 130 | off += s |
|
138 | 131 | e = INDEX_ENTRY_V0.unpack(cur) |
|
139 | 132 | # transform to revlogv1 format |
|
140 | e2 = ( | |
|
141 |
|
|
|
142 | e[1], | |
|
143 | -1, | |
|
144 |
e[ |
|
|
145 | e[3], | |
|
146 |
nodemap.get(e[ |
|
|
147 | nodemap.get(e[5], node.nullrev), | |
|
148 | e[6], | |
|
149 | 0, # no side data support | |
|
150 | 0, # no side data support | |
|
151 | COMP_MODE_INLINE, | |
|
133 | e2 = revlogutils.entry( | |
|
134 | data_offset=e[0], | |
|
135 | data_compressed_length=e[1], | |
|
136 | data_delta_base=e[2], | |
|
137 | link_rev=e[3], | |
|
138 | parent_rev_1=nodemap.get(e[4], node.nullrev), | |
|
139 | parent_rev_2=nodemap.get(e[5], node.nullrev), | |
|
140 | node_id=e[6], | |
|
152 | 141 | ) |
|
153 | 142 | index.append(e2) |
|
154 | 143 | nodemap[e[6]] = n |
General Comments 0
You need to be logged in to leave comments.
Login now