Mercurial > hg
view contrib/fuzz/pyutil.h @ 46497:4a012e531066
diff: extract function for getting possibly re-merged parent to diff against
We'll want to reuse the logic that `hg diff --change` with
`diff.merge` uses. At least `hg log -p` should reuse it. This patch
therefore extracts that code to a function.
Differential Revision: https://phab.mercurial-scm.org/D9957
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 04 Feb 2021 13:21:01 -0800 |
parents | 8766728dbce6 |
children |
line wrap: on
line source
#include <Python.h> #if PY_MAJOR_VERSION >= 3 #define PYCODETYPE PyObject #else #define PYCODETYPE PyCodeObject #endif namespace contrib { void initpy(const char *cselfpath); PyObject *pyglobals(); } /* namespace contrib */