comparison mercurial/cext/revlog.h @ 40861:b12700dd261f

revlog: add public CPython function to get parent revisions Since this is a public function, it validates the input revision, and supports nullrev. index_get_parents_checked() will be replaced by this function.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 02 Dec 2018 22:10:37 +0900
parents 18a8def6e1b5
children 9db11679f8ac
comparison
equal deleted inserted replaced
40860:18a8def6e1b5 40861:b12700dd261f
10 10
11 #include <Python.h> 11 #include <Python.h>
12 12
13 extern PyTypeObject HgRevlogIndex_Type; 13 extern PyTypeObject HgRevlogIndex_Type;
14 14
15 #define HgRevlogIndex_Check(op) PyObject_TypeCheck(op, &HgRevlogIndex_Type)
16
17 int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps);
18
15 #endif /* _HG_REVLOG_H_ */ 19 #endif /* _HG_REVLOG_H_ */