Mercurial > hg
view contrib/fuzz/pyutil.h @ 46288:61f8fc12e167
shelve: don't include invalid shelves in `hg shelve --list`
Before this patch, if a shelved change is missing its `.hg` file, we
still list it in `hg shelve --list`, but then `hg unshelve`
crashes. This patch makes it so we only list valid shelved changes.
This patch means that users who do `touch .hg/shelve/buy-milk.patch`
as a form of TODO list will no longer see their TODO items in `hg
shelve --list`.
Differential Revision: https://phab.mercurial-scm.org/D9719
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 11 Jan 2021 09:26:48 -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 */