mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
05ceb8b419
Summary: This adds a new wire protocol command to allow clients to request a set of file contents and histories from the server and receive them in pack format. It's pretty simple and always returns all the history for every node requested (which is a bit overkill), but it's labeled v1 and we can iterate on it. Test Plan: Added a test Reviewers: #mercurial, ttung, mitrandir Reviewed By: mitrandir Subscribers: mitrandir Differential Revision: https://phabricator.intern.facebook.com/D3277212 Signature: t1:3277212:1463421279:459cc84265502175b47df293647aab7e7a830185
8 lines
129 B
Python
8 lines
129 B
Python
import struct
|
|
|
|
FILENAMESTRUCT = '!H'
|
|
FILENAMESIZE = struct.calcsize(FILENAMESTRUCT)
|
|
|
|
NODESIZE = 20
|
|
PACKREQUESTCOUNTSTRUCT = '!I'
|