mercurial/manifest.py
changeset 44708 61134a232d00
parent 44706 ce126b6bea79
child 44786 640d5b3bd060
child 44817 35bb67427f63
equal deleted inserted replaced
44707:9d569983668b 44708:61134a232d00
  1430         try:
  1430         try:
  1431             with self._opener(self._file) as fp:
  1431             with self._opener(self._file) as fp:
  1432                 set = super(manifestfulltextcache, self).__setitem__
  1432                 set = super(manifestfulltextcache, self).__setitem__
  1433                 # ignore trailing data, this is a cache, corruption is skipped
  1433                 # ignore trailing data, this is a cache, corruption is skipped
  1434                 while True:
  1434                 while True:
       
  1435                     # TODO do we need to do work here for sha1 portability?
  1435                     node = fp.read(20)
  1436                     node = fp.read(20)
  1436                     if len(node) < 20:
  1437                     if len(node) < 20:
  1437                         break
  1438                         break
  1438                     try:
  1439                     try:
  1439                         size = struct.unpack(b'>L', fp.read(4))[0]
  1440                         size = struct.unpack(b'>L', fp.read(4))[0]