~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_pyx.pyx

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-03 06:02:49 UTC
  • mfrom: (5672.1.7 branch-revs-to-fetch)
  • Revision ID: pqm@pqm.ubuntu.com-20110303060249-l2zou9i59742nrqf
(spiv) Add Branch.heads_to_fetch API and HPSS request. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
        # %llu is what we really want, but unfortunately it was only added
514
514
        # in python 2.7... :(
515
515
        block_offset_str = str(record.block_offset)
516
 
        value = PyString_FromFormat('%s %lu %lu %lu',
 
516
        value = PyString_FromFormat('%s %u %u %u',
517
517
                                PyString_AS_STRING(block_offset_str),
518
518
                                record.block_length,
519
519
                                record.record_start, record.record_end)
520
520
    else:
521
 
        value = PyString_FromFormat('%lu %lu %lu %lu',
 
521
        value = PyString_FromFormat('%lu %u %u %u',
522
522
                                    <unsigned long>record.block_offset,
523
523
                                    record.block_length,
524
524
                                    record.record_start, record.record_end)