~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2009-02-15 22:46:41 UTC
  • mto: (4022.1.4 fetch.RemoteSink)
  • mto: This revision was merged to the branch mainline in revision 4026.
  • Revision ID: robertc@robertcollins.net-20090215224641-03t8v17lsqyyjyhc
Test NetworkRecordStream with delta'd texts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
    """
323
323
    start = line_end
324
324
    line_end = bytes.find('\n', start)
325
 
    key = bytes[:line_end].split('\x00')
 
325
    key = tuple(bytes[start:line_end].split('\x00'))
326
326
    start = line_end + 1
327
327
    line_end = bytes.find('\n', start)
328
328
    parent_line = bytes[start:line_end]
330
330
        parents = None
331
331
    else:
332
332
        parents = tuple(
333
 
            [segment.split('\x00') for segment in parent_line.split('\t')
 
333
            [tuple(segment.split('\x00')) for segment in parent_line.split('\t')
334
334
             if segment])
335
335
    start = line_end + 1
336
 
    noeol = bytes[start] != 'N'
 
336
    noeol = bytes[start] == 'N'
337
337
    if 'ft' in storage_kind:
338
338
        method = 'fulltext'
339
339
    else: