Cleanup: use '#' prefix for issues instead of 'T'
Match the convention from Gitea instead of Phabricator's T for tasks.
This commit is contained in:
@@ -153,7 +153,7 @@ static PyObject *make_app_info(void)
|
||||
SetObjItem(PyBool_FromLong(G.factory_startup));
|
||||
|
||||
/* build info, use bytes since we can't assume _any_ encoding:
|
||||
* see patch T30154 for issue */
|
||||
* see patch #30154 for issue */
|
||||
#ifdef BUILD_DATE
|
||||
SetBytesItem(build_date);
|
||||
SetBytesItem(build_time);
|
||||
@@ -557,7 +557,7 @@ PyObject *BPY_app_struct(void)
|
||||
BlenderAppType.tp_init = NULL;
|
||||
BlenderAppType.tp_new = NULL;
|
||||
BlenderAppType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
/* Kind of a hack on top of #PyStructSequence. */
|
||||
py_struct_seq_getset_init();
|
||||
|
||||
@@ -84,7 +84,7 @@ PyObject *BPY_app_alembic_struct(void)
|
||||
BlenderAppABCType.tp_init = NULL;
|
||||
BlenderAppABCType.tp_new = NULL;
|
||||
BlenderAppABCType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ PyObject *BPY_app_build_options_struct(void)
|
||||
BlenderAppBuildOptionsType.tp_init = NULL;
|
||||
BlenderAppBuildOptionsType.tp_new = NULL;
|
||||
BlenderAppBuildOptionsType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ PyObject *BPY_app_ffmpeg_struct(void)
|
||||
BlenderAppFFmpegType.tp_init = NULL;
|
||||
BlenderAppFFmpegType.tp_new = NULL;
|
||||
BlenderAppFFmpegType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ PyObject *BPY_app_handlers_struct(void)
|
||||
BlenderAppCbType.tp_init = NULL;
|
||||
BlenderAppCbType.tp_new = NULL;
|
||||
BlenderAppCbType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
/* assign the C callbacks */
|
||||
if (ret) {
|
||||
|
||||
@@ -90,7 +90,7 @@ PyObject *BPY_app_ocio_struct(void)
|
||||
BlenderAppOCIOType.tp_init = NULL;
|
||||
BlenderAppOCIOType.tp_new = NULL;
|
||||
BlenderAppOCIOType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ PyObject *BPY_app_oiio_struct(void)
|
||||
BlenderAppOIIOType.tp_init = NULL;
|
||||
BlenderAppOIIOType.tp_new = NULL;
|
||||
BlenderAppOIIOType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ PyObject *BPY_app_opensubdiv_struct(void)
|
||||
/* prevent user from creating new instances */
|
||||
BlenderAppOpenSubdivType.tp_init = NULL;
|
||||
BlenderAppOpenSubdivType.tp_new = NULL;
|
||||
/* without this we can't do set(sys.modules) T29635. */
|
||||
/* without this we can't do set(sys.modules) #29635. */
|
||||
BlenderAppOpenSubdivType.tp_hash = (hashfunc)_Py_HashPointer;
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -88,7 +88,7 @@ PyObject *BPY_app_openvdb_struct(void)
|
||||
BlenderAppOVDBType.tp_init = NULL;
|
||||
BlenderAppOVDBType.tp_new = NULL;
|
||||
BlenderAppOVDBType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ PyObject *BPY_app_sdl_struct(void)
|
||||
BlenderAppSDLType.tp_init = NULL;
|
||||
BlenderAppSDLType.tp_new = NULL;
|
||||
BlenderAppSDLType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -854,7 +854,7 @@ PyObject *BPY_app_translations_struct(void)
|
||||
|
||||
/* prevent user from creating new instances */
|
||||
BlenderAppTranslationsType.tp_new = NULL;
|
||||
/* without this we can't do set(sys.modules) T29635. */
|
||||
/* without this we can't do set(sys.modules) #29635. */
|
||||
BlenderAppTranslationsType.tp_hash = (hashfunc)_Py_HashPointer;
|
||||
|
||||
return ret;
|
||||
@@ -862,7 +862,7 @@ PyObject *BPY_app_translations_struct(void)
|
||||
|
||||
void BPY_app_translations_end(void)
|
||||
{
|
||||
/* In case the object remains in a module's name-space, see T44127. */
|
||||
/* In case the object remains in a module's name-space, see #44127. */
|
||||
#ifdef WITH_INTERNATIONAL
|
||||
_clear_translations_cache();
|
||||
#endif
|
||||
|
||||
@@ -85,7 +85,7 @@ PyObject *BPY_app_usd_struct(void)
|
||||
BlenderAppUSDType.tp_init = NULL;
|
||||
BlenderAppUSDType.tp_new = NULL;
|
||||
BlenderAppUSDType.tp_hash = (hashfunc)
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) T29635. */
|
||||
_Py_HashPointer; /* without this we can't do set(sys.modules) #29635. */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ static PyObject *bpy_pydriver_depsgraph_as_pyobject(struct Depsgraph *depsgraph)
|
||||
|
||||
/**
|
||||
* Adds a variable `depsgraph` to the name-space. This can then be used to obtain evaluated
|
||||
* data-blocks, and the current view layer and scene. See T75553.
|
||||
* data-blocks, and the current view layer and scene. See #75553.
|
||||
*/
|
||||
static void bpy_pydriver_namespace_update_depsgraph(struct Depsgraph *depsgraph)
|
||||
{
|
||||
@@ -560,9 +560,9 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna,
|
||||
/* (old) NOTE: PyGILState_Ensure() isn't always called because python can call
|
||||
* the bake operator which intern starts a thread which calls scene update
|
||||
* which does a driver update. to avoid a deadlock check #PyC_IsInterpreterActive()
|
||||
* if #PyGILState_Ensure() is needed, see T27683.
|
||||
* if #PyGILState_Ensure() is needed, see #27683.
|
||||
*
|
||||
* (new) NOTE: checking if python is running is not thread-safe T28114
|
||||
* (new) NOTE: checking if python is running is not thread-safe #28114
|
||||
* now release the GIL on python operator execution instead, using
|
||||
* #PyEval_SaveThread() / #PyEval_RestoreThread() so we don't lock up blender.
|
||||
*
|
||||
@@ -612,7 +612,7 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna,
|
||||
gilstate = PyGILState_Ensure();
|
||||
}
|
||||
|
||||
/* Needed since drivers are updated directly after undo where `main` is re-allocated T28807. */
|
||||
/* Needed since drivers are updated directly after undo where `main` is re-allocated #28807. */
|
||||
BPY_update_rna_module();
|
||||
|
||||
/* Initialize global dictionary for Python driver evaluation settings. */
|
||||
|
||||
@@ -316,7 +316,7 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
PyPreConfig preconfig;
|
||||
PyStatus status;
|
||||
|
||||
/* To narrow down reports where the systems Python is inexplicably used, see: T98131. */
|
||||
/* To narrow down reports where the systems Python is inexplicably used, see: #98131. */
|
||||
CLOG_INFO(
|
||||
BPY_LOG_INTERFACE,
|
||||
2,
|
||||
@@ -329,7 +329,7 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
}
|
||||
else {
|
||||
/* Only use the systems environment variables and site when explicitly requested.
|
||||
* Since an incorrect 'PYTHONPATH' causes difficult to debug errors, see: T72807.
|
||||
* Since an incorrect 'PYTHONPATH' causes difficult to debug errors, see: #72807.
|
||||
* An alternative to setting `preconfig.use_environment = 0` */
|
||||
PyPreConfig_InitIsolatedConfig(&preconfig);
|
||||
}
|
||||
@@ -372,7 +372,7 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
config.pathconfig_warnings = 0;
|
||||
|
||||
/* Allow the user site directory because this is used
|
||||
* when PIP installing packages from Blender, see: T104000.
|
||||
* when PIP installing packages from Blender, see: #104000.
|
||||
*
|
||||
* NOTE(@ideasman42): While an argument can be made for isolating Blender's Python
|
||||
* from the users home directory entirely, an alternative directory should be used in that
|
||||
@@ -507,7 +507,7 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
#endif
|
||||
|
||||
#ifdef WITH_PYTHON_MODULE
|
||||
/* Disable all add-ons at exit, not essential, it just avoids resource leaks, see T71362. */
|
||||
/* Disable all add-ons at exit, not essential, it just avoids resource leaks, see #71362. */
|
||||
BPY_run_string_eval(C,
|
||||
(const char *[]){"atexit", "addon_utils", NULL},
|
||||
"atexit.register(addon_utils.disable_all)");
|
||||
|
||||
@@ -64,7 +64,7 @@ static void bpy_text_filepath_get(char *filepath,
|
||||
text->id.name + 2);
|
||||
}
|
||||
|
||||
/* Very annoying! Undo #_PyModule_Clear(), see T23871. */
|
||||
/* Very annoying! Undo #_PyModule_Clear(), see #23871. */
|
||||
#define PYMODULE_CLEAR_WORKAROUND
|
||||
|
||||
#ifdef PYMODULE_CLEAR_WORKAROUND
|
||||
@@ -154,7 +154,7 @@ static bool python_script_exec(bContext *C,
|
||||
* Note on use of 'globals()', it's important not copy the dictionary because
|
||||
* tools may inspect 'sys.modules["__main__"]' for variables defined in the code
|
||||
* where using a copy of 'globals()' causes code execution
|
||||
* to leave the main namespace untouched. see: T51444
|
||||
* to leave the main namespace untouched. see: #51444
|
||||
*
|
||||
* This leaves us with the problem of variables being included,
|
||||
* currently this is worked around using 'dict.__del__' it's ugly but works.
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
*
|
||||
* This struct adds/removes the user-count of each #PyObject it references,
|
||||
* it's needed in case the function is removed from the class (unlikely but possible),
|
||||
* also when an annotation evaluates to a `lambda` with Python 3.10 and newer e.g: T86332.
|
||||
* also when an annotation evaluates to a `lambda` with Python 3.10 and newer e.g: #86332.
|
||||
*
|
||||
* Pointers to this struct are held in:
|
||||
*
|
||||
|
||||
@@ -2264,7 +2264,7 @@ static PyObject *pyrna_prop_collection_subscript_int(BPy_PropertyRNA *self, Py_s
|
||||
}
|
||||
}
|
||||
/* It's important to end the iterator after `result` has been created
|
||||
* so iterators may optionally invalidate items that were iterated over, see: T100286. */
|
||||
* so iterators may optionally invalidate items that were iterated over, see: #100286. */
|
||||
RNA_property_collection_end(&iter);
|
||||
if (found) {
|
||||
if (result && (pyrna_prop_collection_subscript_is_valid_or_error(result) == -1)) {
|
||||
@@ -2384,7 +2384,7 @@ static PyObject *pyrna_prop_collection_subscript_str(BPy_PropertyRNA *self, cons
|
||||
}
|
||||
}
|
||||
/* It's important to end the iterator after `result` has been created
|
||||
* so iterators may optionally invalidate items that were iterated over, see: T100286. */
|
||||
* so iterators may optionally invalidate items that were iterated over, see: #100286. */
|
||||
RNA_property_collection_end(&iter);
|
||||
if (found) {
|
||||
if (result && (pyrna_prop_collection_subscript_is_valid_or_error(result) == -1)) {
|
||||
@@ -8495,7 +8495,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param
|
||||
}
|
||||
|
||||
#ifdef USE_PEDANTIC_WRITE
|
||||
/* Handle nested draw calls, see: T89253. */
|
||||
/* Handle nested draw calls, see: #89253. */
|
||||
const bool rna_disallow_writes_prev = rna_disallow_writes;
|
||||
rna_disallow_writes = is_readonly ? true : false;
|
||||
#endif
|
||||
|
||||
@@ -121,7 +121,7 @@ static PyObject *bpy_rna_context_temp_override_exit(BPyContextTempOverride *self
|
||||
bContext *C = self->context;
|
||||
|
||||
/* Special case where the window is expected to be freed on file-read,
|
||||
* in this case the window should not be restored, see: T92818. */
|
||||
* in this case the window should not be restored, see: #92818. */
|
||||
bool do_restore = true;
|
||||
if (self->ctx_init.win) {
|
||||
wmWindowManager *wm = CTX_wm_manager(C);
|
||||
|
||||
@@ -43,7 +43,7 @@ PyObject *pyrna_driver_get_variable_value(struct ChannelDriver *driver, struct D
|
||||
const PropertyType type = RNA_property_type(prop);
|
||||
if (type == PROP_ENUM) {
|
||||
/* Note that enum's are converted to strings by default,
|
||||
* we want to avoid that, see: T52213 */
|
||||
* we want to avoid that, see: #52213 */
|
||||
driver_arg = PyLong_FromLong(RNA_property_enum_get(&ptr, prop));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -168,7 +168,7 @@ bool python_script_error_jump(
|
||||
{
|
||||
/* WARNING(@ideasman42): The normalized exception is restored (losing line number info).
|
||||
* Ideally this would leave the exception state as it found it, but that needs to be done
|
||||
* carefully with regards to reference counting, see: T97731. */
|
||||
* carefully with regards to reference counting, see: #97731. */
|
||||
|
||||
bool success = false;
|
||||
PyObject *exception, *value;
|
||||
|
||||
Reference in New Issue
Block a user