mercurial/cext/revlog.c
changeset 49211 675594a0a71a
parent 48970 890db1c97218
child 49212 d3d3495a5749
equal deleted inserted replaced
49207:8960d8eb747b 49211:675594a0a71a
   495 		return NULL;
   495 		return NULL;
   496 	}
   496 	}
   497 	if (self->format_version != format_v1) {
   497 	if (self->format_version != format_v1) {
   498 		PyErr_Format(PyExc_RuntimeError,
   498 		PyErr_Format(PyExc_RuntimeError,
   499 		             "version header should go in the docket, not the "
   499 		             "version header should go in the docket, not the "
   500 		             "index: %lu",
   500 		             "index: %d",
   501 		             header);
   501 		             header);
   502 		return NULL;
   502 		return NULL;
   503 	}
   503 	}
   504 	putbe32(header, out);
   504 	putbe32(header, out);
   505 	return PyBytes_FromStringAndSize(out, 4);
   505 	return PyBytes_FromStringAndSize(out, 4);