mercurial/cext/revlog.c
branchstable
changeset 41019 7542466b94e2
parent 41018 f4113489e4d4
child 41129 074c72a38423
equal deleted inserted replaced
41018:f4113489e4d4 41019:7542466b94e2
   858 	}
   858 	}
   859 	if (result > rev) {
   859 	if (result > rev) {
   860 		PyErr_Format(
   860 		PyErr_Format(
   861 		    PyExc_ValueError,
   861 		    PyExc_ValueError,
   862 		    "corrupted revlog, revision base above revision: %d, %d",
   862 		    "corrupted revlog, revision base above revision: %d, %d",
       
   863 		    rev, result);
       
   864 		return -2;
       
   865 	}
       
   866 	if (result < -1) {
       
   867 		PyErr_Format(
       
   868 		    PyExc_ValueError,
       
   869 		    "corrupted revlog, revision base out of range: %d, %d",
   863 		    rev, result);
   870 		    rev, result);
   864 		return -2;
   871 		return -2;
   865 	}
   872 	}
   866 	return result;
   873 	return result;
   867 }
   874 }