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