Mercurial > hg
comparison mercurial/cext/revlog.c @ 32384:2e5a476b2e46
cext: move back finalization of dirstateTupleType where it should be
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 May 2017 13:31:27 +0900 |
parents | 7d0c69505a66 |
children | 6d678ab1b10d |
comparison
equal
deleted
inserted
replaced
32382:c87db79b9507 | 32384:2e5a476b2e46 |
---|---|
1928 } | 1928 } |
1929 | 1929 |
1930 void revlog_module_init(PyObject *mod) | 1930 void revlog_module_init(PyObject *mod) |
1931 { | 1931 { |
1932 indexType.tp_new = PyType_GenericNew; | 1932 indexType.tp_new = PyType_GenericNew; |
1933 if (PyType_Ready(&indexType) < 0 || | 1933 if (PyType_Ready(&indexType) < 0) |
1934 PyType_Ready(&dirstateTupleType) < 0) | |
1935 return; | 1934 return; |
1936 Py_INCREF(&indexType); | 1935 Py_INCREF(&indexType); |
1937 PyModule_AddObject(mod, "index", (PyObject *)&indexType); | 1936 PyModule_AddObject(mod, "index", (PyObject *)&indexType); |
1938 | 1937 |
1939 nullentry = Py_BuildValue("iiiiiiis#", 0, 0, 0, | 1938 nullentry = Py_BuildValue("iiiiiiis#", 0, 0, 0, |