Show More
@@ -263,18 +263,11 b' def _debugchangegroup(ui, gen, all=None,' | |||
|
263 | 263 | |
|
264 | 264 | def showchunks(named): |
|
265 | 265 | ui.write("\n%s%s\n" % (indent_string, named)) |
|
266 | chain = None | |
|
267 | for chunkdata in iter(lambda: gen.deltachunk(chain), {}): | |
|
268 | node = chunkdata['node'] | |
|
269 | p1 = chunkdata['p1'] | |
|
270 | p2 = chunkdata['p2'] | |
|
271 | cs = chunkdata['cs'] | |
|
272 | deltabase = chunkdata['deltabase'] | |
|
273 | delta = chunkdata['delta'] | |
|
266 | for deltadata in gen.deltaiter(): | |
|
267 | node, p1, p2, cs, deltabase, delta, flags = deltadata | |
|
274 | 268 | ui.write("%s%s %s %s %s %s %s\n" % |
|
275 | 269 | (indent_string, hex(node), hex(p1), hex(p2), |
|
276 | 270 | hex(cs), hex(deltabase), len(delta))) |
|
277 | chain = node | |
|
278 | 271 | |
|
279 | 272 | chunkdata = gen.changelogheader() |
|
280 | 273 | showchunks("changelog") |
@@ -287,11 +280,9 b' def _debugchangegroup(ui, gen, all=None,' | |||
|
287 | 280 | if isinstance(gen, bundle2.unbundle20): |
|
288 | 281 | raise error.Abort(_('use debugbundle2 for this file')) |
|
289 | 282 | chunkdata = gen.changelogheader() |
|
290 | chain = None | |
|
291 | for chunkdata in iter(lambda: gen.deltachunk(chain), {}): | |
|
292 | node = chunkdata['node'] | |
|
283 | for deltadata in gen.deltaiter(): | |
|
284 | node, p1, p2, cs, deltabase, delta, flags = deltadata | |
|
293 | 285 | ui.write("%s%s\n" % (indent_string, hex(node))) |
|
294 | chain = node | |
|
295 | 286 | |
|
296 | 287 | def _debugobsmarkers(ui, part, indent=0, **opts): |
|
297 | 288 | """display version and markers contained in 'data'""" |
General Comments 0
You need to be logged in to leave comments.
Login now