changeset 47148 | a07d5cb03a85 |
parent 47147 | 8a1a51d31e85 |
child 47150 | 8d3c2f9d4af7 |
47147:8a1a51d31e85 | 47148:a07d5cb03a85 |
---|---|
82 linkrev = linkmapper(cs) |
82 linkrev = linkmapper(cs) |
83 |
83 |
84 for p in (p1, p2): |
84 for p in (p1, p2): |
85 if not self.index.has_node(p): |
85 if not self.index.has_node(p): |
86 raise error.LookupError( |
86 raise error.LookupError( |
87 p, self.indexfile, _(b"unknown parent") |
87 p, self._indexfile, _(b"unknown parent") |
88 ) |
88 ) |
89 |
89 |
90 if not self.index.has_node(deltabase): |
90 if not self.index.has_node(deltabase): |
91 raise LookupError( |
91 raise LookupError( |
92 deltabase, self.indexfile, _(b'unknown delta base') |
92 deltabase, self._indexfile, _(b'unknown delta base') |
93 ) |
93 ) |
94 |
94 |
95 baserev = self.rev(deltabase) |
95 baserev = self.rev(deltabase) |
96 # start, size, full unc. size, base (unused), link, p1, p2, node, sidedata_offset (unused), sidedata_size (unused) |
96 # start, size, full unc. size, base (unused), link, p1, p2, node, sidedata_offset (unused), sidedata_size (unused) |
97 e = ( |
97 e = ( |
178 linkmapper = lambda x: x |
178 linkmapper = lambda x: x |
179 bundlerevlog.__init__( |
179 bundlerevlog.__init__( |
180 self, |
180 self, |
181 opener, |
181 opener, |
182 (revlog_constants.KIND_CHANGELOG, None), |
182 (revlog_constants.KIND_CHANGELOG, None), |
183 self.indexfile, |
183 self._indexfile, |
184 cgunpacker, |
184 cgunpacker, |
185 linkmapper, |
185 linkmapper, |
186 ) |
186 ) |
187 |
187 |
188 |
188 |
199 manifest.manifestrevlog.__init__(self, nodeconstants, opener, tree=dir) |
199 manifest.manifestrevlog.__init__(self, nodeconstants, opener, tree=dir) |
200 bundlerevlog.__init__( |
200 bundlerevlog.__init__( |
201 self, |
201 self, |
202 opener, |
202 opener, |
203 (revlog_constants.KIND_MANIFESTLOG, dir), |
203 (revlog_constants.KIND_MANIFESTLOG, dir), |
204 self._revlog.indexfile, |
204 self._revlog._indexfile, |
205 cgunpacker, |
205 cgunpacker, |
206 linkmapper, |
206 linkmapper, |
207 ) |
207 ) |
208 if dirlogstarts is None: |
208 if dirlogstarts is None: |
209 dirlogstarts = {} |
209 dirlogstarts = {} |
231 filelog.filelog.__init__(self, opener, path) |
231 filelog.filelog.__init__(self, opener, path) |
232 self._revlog = bundlerevlog( |
232 self._revlog = bundlerevlog( |
233 opener, |
233 opener, |
234 # XXX should use the unencoded path |
234 # XXX should use the unencoded path |
235 target=(revlog_constants.KIND_FILELOG, path), |
235 target=(revlog_constants.KIND_FILELOG, path), |
236 indexfile=self._revlog.indexfile, |
236 indexfile=self._revlog._indexfile, |
237 cgunpacker=cgunpacker, |
237 cgunpacker=cgunpacker, |
238 linkmapper=linkmapper, |
238 linkmapper=linkmapper, |
239 ) |
239 ) |
240 |
240 |
241 |
241 |