equal
deleted
inserted
replaced
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 } |