comparison relnotes/next @ 42574:d28d91f9f35a

py3: don't run source transformer on hgext3rd (extensions) It's unclear why the source transformer runs on hgext3rd. It's been like that since it was introduced in 1c22400db72d (mercurial: implement a source transforming module loader on Python 3, 2016-07-04), and that commit didn't say anything about it (but it says that it doesn't have "support [...] for extensions"). I find that the current handling of hgext3rd just makes it harder to convert extensions to Python 3. It makes you convert a bunch of strings passed to getattr() and kwargs[] to r'' that could otherwise have been left alone. It's also really confusing that the source transformer runs when you import the extension as "extensions.foo=", but not as "extension.foo=/some/path". I suppose there is small number of (very simple) extensions that would have worked without this patch that would now be broken. It seems okay to me to break those. Differential Revision: https://phab.mercurial-scm.org/D6614
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 07 Jul 2019 23:04:55 -0700
parents 4cafbd3b50c6
children 9f73620a65fe
comparison
equal deleted inserted replaced
42573:9ac1a5a4a64f 42574:d28d91f9f35a
71 has been added to `state.py`. Now instead of adding to these 3 lists 71 has been added to `state.py`. Now instead of adding to these 3 lists
72 independently a state for a new operation can be registered using 72 independently a state for a new operation can be registered using
73 `addunfinished()` in `state` module. 73 `addunfinished()` in `state` module.
74 74
75 * `cmdutil.checkunfinished()` now includes detection for merge too. 75 * `cmdutil.checkunfinished()` now includes detection for merge too.
76
77 * We used to automatically attempt to make extensions compatible with
78 Python 3 (by translating their source code while loading it). We no
79 longer do that.