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