mercurial/parsers.c
changeset 26052 b970418bbafe
parent 26051 af090796cb33
child 26053 b68c9d232db6
equal deleted inserted replaced
26051:af090796cb33 26052:b970418bbafe
   479 		goto quit;
   479 		goto quit;
   480 
   480 
   481 	len = readlen;
   481 	len = readlen;
   482 
   482 
   483 	/* read parents */
   483 	/* read parents */
   484 	if (len < 40)
   484 	if (len < 40) {
       
   485 		PyErr_SetString(
       
   486 			PyExc_ValueError, "too little data for parents");
   485 		goto quit;
   487 		goto quit;
       
   488 	}
   486 
   489 
   487 	parents = Py_BuildValue("s#s#", str, 20, str + 20, 20);
   490 	parents = Py_BuildValue("s#s#", str, 20, str + 20, 20);
   488 	if (!parents)
   491 	if (!parents)
   489 		goto quit;
   492 		goto quit;
   490 
   493