Mercurial > hg
comparison mercurial/cext/revlog.c @ 44467:9db11679f8ac
cext: make HgRevlogIndex_GetParents private again
The rust's direct-ffi code need to access this function. Now that it
`direct-ffi` is no more. We can make this function `static` again.
This change was suggested by `Yuya Nishihara`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 08 Mar 2020 16:40:39 +0100 |
parents | f5d2720f3bea |
children | b55bec1ea972 |
comparison
equal
deleted
inserted
replaced
44466:79ac59d3f73d | 44467:9db11679f8ac |
---|---|
206 * If the specified rev is out of range, IndexError will be raised. If the | 206 * If the specified rev is out of range, IndexError will be raised. If the |
207 * revlog entry is corrupted, ValueError may be raised. | 207 * revlog entry is corrupted, ValueError may be raised. |
208 * | 208 * |
209 * Returns 0 on success or -1 on failure. | 209 * Returns 0 on success or -1 on failure. |
210 */ | 210 */ |
211 int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps) | 211 static int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps) |
212 { | 212 { |
213 int tiprev; | 213 int tiprev; |
214 if (!op || !HgRevlogIndex_Check(op) || !ps) { | 214 if (!op || !HgRevlogIndex_Check(op) || !ps) { |
215 PyErr_BadInternalCall(); | 215 PyErr_BadInternalCall(); |
216 return -1; | 216 return -1; |