##// END OF EJS Templates
debugcommands: pass part, not read data, into _debugobsmarker()...
Martin von Zweigbergk -
r33029:b482d80e default
parent child Browse files
Show More
@@ -289,8 +289,9 b' def _debugchangegroup(ui, gen, all=None,'
289 289 ui.write("%s%s\n" % (indent_string, hex(node)))
290 290 chain = node
291 291
292 def _debugobsmarkers(ui, data, indent=0, **opts):
292 def _debugobsmarkers(ui, part, indent=0, **opts):
293 293 """display version and markers contained in 'data'"""
294 data = part.read()
294 295 indent_string = ' ' * indent
295 296 try:
296 297 version, markers = obsolete._readmarkers(data)
@@ -325,7 +326,7 b' def _debugbundle2(ui, gen, all=None, **o'
325 326 cg = changegroup.getunbundler(version, part, 'UN')
326 327 _debugchangegroup(ui, cg, all=all, indent=4, **opts)
327 328 if part.type == 'obsmarkers':
328 _debugobsmarkers(ui, part.read(), indent=4, **opts)
329 _debugobsmarkers(ui, part, indent=4, **opts)
329 330
330 331 @command('debugbundle',
331 332 [('a', 'all', None, _('show all details')),
General Comments 0
You need to be logged in to leave comments. Login now