equal
deleted
inserted
replaced
1501 _('cache contains %d manifest entries, in order of most to ' |
1501 _('cache contains %d manifest entries, in order of most to ' |
1502 'least recent:\n') % (len(cache),)) |
1502 'least recent:\n') % (len(cache),)) |
1503 totalsize = 0 |
1503 totalsize = 0 |
1504 for nodeid in cache: |
1504 for nodeid in cache: |
1505 # Use cache.get to not update the LRU order |
1505 # Use cache.get to not update the LRU order |
1506 data = cache.get(nodeid) |
1506 data = cache.peek(nodeid) |
1507 size = len(data) |
1507 size = len(data) |
1508 totalsize += size + 24 # 20 bytes nodeid, 4 bytes size |
1508 totalsize += size + 24 # 20 bytes nodeid, 4 bytes size |
1509 ui.write(_('id: %s, size %s\n') % ( |
1509 ui.write(_('id: %s, size %s\n') % ( |
1510 hex(nodeid), util.bytecount(size))) |
1510 hex(nodeid), util.bytecount(size))) |
1511 ondisk = cache._opener.stat('manifestfulltextcache').st_size |
1511 ondisk = cache._opener.stat('manifestfulltextcache').st_size |