sapling/remotefilelog
Ryan McElroy 1184ee707c Fix stack overflow when dealing with long file histories
Summary:
The new fixmappinglinknodes function was using recursion to traverse the file
history, but this would break for files with history that was extremely long
(stack overflow). Switch to using a manual stack approach.

Test Plan: Ran the tests (I'd added a test to cover this logic before).

Reviewers: sid0, davidsp, mitrandir, lcharignon, pyd, rmcelroy

Reviewed By: rmcelroy

Subscribers: michaelbarton

Differential Revision: https://phabricator.fb.com/D1931944

Signature: t1:1931944:1426884986:3a0ef144fb55b8c0533e5c5de90699a1823b891f
2015-03-20 14:04:40 -07:00
..
__init__.py make patch.trydiff wrapper more generic 2015-03-17 10:56:59 -07:00
cacheclient.py Add example cache client implementation 2013-10-17 14:18:23 -07:00
debugcommands.py Fix debugremotefilelog command 2013-12-13 11:42:50 -08:00
fileserverclient.py Improve error message when fallback server isn't configured 2015-01-09 09:43:14 -08:00
remotefilectx.py Move _adjustlinkrev onto remotefilectx 2015-02-03 18:59:00 -08:00
remotefilelog.py Fix stack overflow when dealing with long file histories 2015-03-20 14:04:40 -07:00
remotefilelogserver.py Move _adjustlinkrev onto remotefilectx 2015-02-03 18:59:00 -08:00
shallowbundle.py [shallowbundle] don't drop units and reorder on the floor 2015-01-08 17:02:37 -08:00
shallowrepo.py shallowrepo: prefetch files before a commitctx 2015-03-05 16:06:12 -08:00
shallowstore.py Add more comments explaining various complexities 2013-11-05 17:19:59 -08:00
shallowutil.py [bundle2] insert ourselves into the cg1packer class hierarchy and fix up the packermap 2014-11-07 18:35:52 -08:00