mercurial/cext/revlog.c
branchstable
changeset 47862 16346f3d446d
parent 47403 8a6e6b62b9a3
child 47863 8d297f3563be
equal deleted inserted replaced
47858:df94c13ddf60 47862:16346f3d446d
   450 }
   450 }
   451 
   451 
   452 static PyObject *index_append(indexObject *self, PyObject *obj)
   452 static PyObject *index_append(indexObject *self, PyObject *obj)
   453 {
   453 {
   454 	uint64_t offset_flags, sidedata_offset;
   454 	uint64_t offset_flags, sidedata_offset;
   455 	int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2;
   455 	int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2,
       
   456 	    sidedata_comp_len;
   456 	char data_comp_mode, sidedata_comp_mode;
   457 	char data_comp_mode, sidedata_comp_mode;
   457 	Py_ssize_t c_node_id_len, sidedata_comp_len;
   458 	Py_ssize_t c_node_id_len;
   458 	const char *c_node_id;
   459 	const char *c_node_id;
   459 	char comp_field;
   460 	char comp_field;
   460 	char *data;
   461 	char *data;
   461 
   462 
   462 	if (!PyArg_ParseTuple(obj, tuple_format, &offset_flags, &comp_len,
   463 	if (!PyArg_ParseTuple(obj, tuple_format, &offset_flags, &comp_len,
   532    This cannot be used outside of the context of sidedata rewriting,
   533    This cannot be used outside of the context of sidedata rewriting,
   533    inside the transaction that creates the given revision. */
   534    inside the transaction that creates the given revision. */
   534 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
   535 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
   535 {
   536 {
   536 	uint64_t offset_flags, sidedata_offset;
   537 	uint64_t offset_flags, sidedata_offset;
   537 	int rev;
   538 	int rev, sidedata_comp_len;
   538 	char comp_mode;
   539 	char comp_mode;
   539 	Py_ssize_t sidedata_comp_len;
       
   540 	char *data;
   540 	char *data;
   541 #if LONG_MAX == 0x7fffffffL
   541 #if LONG_MAX == 0x7fffffffL
   542 	const char *const sidedata_format = PY23("nKiKB", "nKiKB");
   542 	const char *const sidedata_format = PY23("nKiKB", "nKiKB");
   543 #else
   543 #else
   544 	const char *const sidedata_format = PY23("nkikB", "nkikB");
   544 	const char *const sidedata_format = PY23("nkikB", "nkikB");