hgext/fastannotate/protocol.py
changeset 41264 dfc73c803b77
parent 41262 e40b7a504b1d
child 41387 876494fd967d
equal deleted inserted replaced
41263:c2f62720e37d 41264:dfc73c803b77
    99     vfspath = size = ''
    99     vfspath = size = ''
   100     while i < l:
   100     while i < l:
   101         ch = payload[i:i + 1]
   101         ch = payload[i:i + 1]
   102         if ch == '\0':
   102         if ch == '\0':
   103             if state == 1:
   103             if state == 1:
   104                 result[vfspath] = buffer(payload, i + 1, int(size))
   104                 result[vfspath] = payload[i + 1:i + 1 + int(size)]
   105                 i += int(size)
   105                 i += int(size)
   106                 state = 0
   106                 state = 0
   107                 vfspath = size = ''
   107                 vfspath = size = ''
   108             elif state == 0:
   108             elif state == 0:
   109                 state = 1
   109                 state = 1