equal
deleted
inserted
replaced
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] |