On Mon, 09 Mar 2020 18:34:53 +0100, Pierre-Yves David wrote: > # HG changeset patch > # User Pierre-Yves David <pierre-yves.da...@octobus.net> > # Date 1583771190 -3600 > # Mon Mar 09 17:26:30 2020 +0100 > # Node ID bbfdc8c2f3a2ac0f3c4921351614f4e134b0d46d > # Parent 27e1e79c1a5ad9dfa699954aa68a4c0361d39f1b > # EXP-Topic rust-test-option > # Available At https://dev.heptapod.net/octobus/mercurial-devel/ > # hg pull https://dev.heptapod.net/octobus/mercurial-devel/ -r > bbfdc8c2f3a2 > cext: drop the WITH_RUST block
> -#ifdef WITH_RUST > - rustlazyancestorsType.tp_new = PyType_GenericNew; > - if (PyType_Ready(&rustlazyancestorsType) < 0) > - return; > - Py_INCREF(&rustlazyancestorsType); > - PyModule_AddObject(mod, "rustlazyancestors", > - (PyObject *)&rustlazyancestorsType); And the callers can also be removed? % rg rustlazyancestors mercurial mercurial/revlog.py:948: elif util.safehasattr(parsers, b'rustlazyancestors'): mercurial/revlog.py:949: lazyancestors = ancestor.rustlazyancestors mercurial/ancestor.py:398:class rustlazyancestors(object): mercurial/ancestor.py:404: # it's done by rustlazyancestors constructor. mercurial/ancestor.py:409: self._containsiter = parsers.rustlazyancestors( mercurial/ancestor.py:426: return parsers.rustlazyancestors( _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel