sapling/remotefilelog
Tony Tung 66368c07a1 [cdatapack] fix bugs in the fanout table
Summary:
1. When bisecting, we don't want to wrap around.  If middle == 0 and we're lesser than that, we should just fail.
2. large fanout should be header->config & LARGE_FANOUT.  | means it's always a large fanout.
3. the format of the fanout table on disk makes it impossible to differentiate between an empty fanout entry and the first fanout entry, as they are both '0'.  Therefore, any entry before the *second* fanout entry must implicitly search the 0th element.
4. fixed a bug in the calculation of the last index entry.

Test Plan: passed test-datapack.t with other fixes applied.

Reviewers: #fastmanifest, durham

Reviewed By: durham

Subscribers: durham, mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D3666770

Signature: t1:3666770:1470341277:3f4f63a365e8bb0f4da6e574fc7f15228877c682
2016-08-04 13:51:07 -07:00
..
cdatapack [cdatapack] fix bugs in the fanout table 2016-08-04 13:51:07 -07:00
__init__.py filelogrevset: Return revset.baseset instead of plain list. Add test for kind in path. 2016-08-02 09:40:50 -07:00
basepack.py repack: unmap memory occasionally to reclaim space 2016-07-12 11:46:48 -07:00
basestore.py cachegroup: fix directory permissions for shared cache 2016-07-07 15:58:59 -07:00
cacheclient.py checkcode: fix errors in cacheclient and debugcommands 2016-04-26 13:00:31 -07:00
constants.py store: basic wire protocol for bundle delivery 2016-05-16 10:59:09 -07:00
contentstore.py unionstore: allow incomplete delta chains 2016-05-26 02:15:46 -07:00
datapack.py [debugcommands] return the uncompressed delta length when iterating over a datapack 2016-08-01 14:16:29 -07:00
debugcommands.py [datapack] add --node as a parameter to dump extra data about a node 2016-07-28 17:15:21 -07:00
fileserverclient.py flogheads: return an empty list when requesting heads of a non-existing filelog 2016-08-02 10:41:41 -07:00
historypack.py repack: unmap memory occasionally to reclaim space 2016-07-12 11:46:48 -07:00
metadatastore.py unionstore: allow partial history output from union stores 2016-05-26 02:13:53 -07:00
remotefilectx.py checkcode: fix remotefilectx and remotefilelog 2016-04-26 13:00:31 -07:00
remotefilelog.py copyfrom: fix copy metadata in local blobs 2016-06-06 14:16:06 -07:00
remotefilelogserver.py flogheads: return an empty list when requesting heads of a non-existing filelog 2016-08-02 10:41:41 -07:00
repack.py repack: fix repack heuristic to account for unusual copies 2016-07-07 15:58:47 -07:00
shallowbundle.py shallowbundle: specifically compare instance to remotefilelog.remotefilelog 2016-07-15 23:53:09 -07:00
shallowrepo.py stores: reverse order of cache and local stores 2016-06-16 10:22:31 -07:00
shallowstore.py Add more comments explaining various complexities 2013-11-05 17:19:59 -08:00
shallowutil.py cachegroup: fix directory permissions for shared cache 2016-07-07 15:58:59 -07:00
shallowverifier.py remotefilelog: removing filelog check from verification process 2016-01-07 16:57:39 -08:00