~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Andrew Bennetts
  • Date: 2010-03-17 03:39:58 UTC
  • mto: This revision was merged to the branch mainline in revision 5093.
  • Revision ID: andrew.bennetts@canonical.com-20100317033958-oftkmvk6t6p877y0
Fix dump-btree to handle *.cix and *.six files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
        for node in bt.iter_all_entries():
457
457
            # Node is made up of:
458
458
            # (index, key, value, [references])
459
 
            refs_as_tuples = static_tuple.as_tuples(node[3])
 
459
            try:
 
460
                refs = node[3]
 
461
            except IndexError:
 
462
                refs_as_tuples = None
 
463
            else:
 
464
                refs_as_tuples = static_tuple.as_tuples(refs)
460
465
            as_tuple = (tuple(node[1]), node[2], refs_as_tuples)
461
466
            self.outf.write('%s\n' % (as_tuple,))
462
467