comparison mercurial/debugcommands.py @ 33040:bdf4227614e2

debugcommands: remove unused "all" argument from _debugobsmarkers
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 22 Jun 2017 10:09:58 -0700
parents 2ecce24dfcd3
children b482d80e041b
comparison
equal deleted inserted replaced
33039:a10f5f6771f6 33040:bdf4227614e2
287 for chunkdata in iter(lambda: gen.deltachunk(chain), {}): 287 for chunkdata in iter(lambda: gen.deltachunk(chain), {}):
288 node = chunkdata['node'] 288 node = chunkdata['node']
289 ui.write("%s%s\n" % (indent_string, hex(node))) 289 ui.write("%s%s\n" % (indent_string, hex(node)))
290 chain = node 290 chain = node
291 291
292 def _debugobsmarkers(ui, data, all=None, indent=0, **opts): 292 def _debugobsmarkers(ui, data, indent=0, **opts):
293 """display version and markers contained in 'data'""" 293 """display version and markers contained in 'data'"""
294 indent_string = ' ' * indent 294 indent_string = ' ' * indent
295 try: 295 try:
296 version, markers = obsolete._readmarkers(data) 296 version, markers = obsolete._readmarkers(data)
297 except error.UnknownVersion as exc: 297 except error.UnknownVersion as exc:
323 if part.type == 'changegroup': 323 if part.type == 'changegroup':
324 version = part.params.get('version', '01') 324 version = part.params.get('version', '01')
325 cg = changegroup.getunbundler(version, part, 'UN') 325 cg = changegroup.getunbundler(version, part, 'UN')
326 _debugchangegroup(ui, cg, all=all, indent=4, **opts) 326 _debugchangegroup(ui, cg, all=all, indent=4, **opts)
327 if part.type == 'obsmarkers': 327 if part.type == 'obsmarkers':
328 _debugobsmarkers(ui, part.read(), all=all, indent=4, **opts) 328 _debugobsmarkers(ui, part.read(), indent=4, **opts)
329 329
330 @command('debugbundle', 330 @command('debugbundle',
331 [('a', 'all', None, _('show all details')), 331 [('a', 'all', None, _('show all details')),
332 ('', 'part-type', [], _('show only the named part type')), 332 ('', 'part-type', [], _('show only the named part type')),
333 ('', 'spec', None, _('print the bundlespec of the bundle'))], 333 ('', 'spec', None, _('print the bundlespec of the bundle'))],