##// END OF EJS Templates
utils: avoid using internal _imp.is_frozen()...
utils: avoid using internal _imp.is_frozen() imp has been deprecated for a long time, and were removed in Python 3.12 . As a workaround, we started using the internal _imp. That is ugly and risky. It seems less risky to get the functionality in some other way. Here, we just inspect if 'origin' of the '__main__' module is set and 'frozen'. That seems to work and do the same, and might be better than using the internal _imp directly. This way of inspecting module attributes seems to work in some test cases, but it is a risky change. This level of importlib doesn't have much documentation, a complicated implementation, and we are dealing with some odd use cases.

File last commit:

r50430:7b6d3a9b default
r52643:c87c56ad default
Show More
Default.md
18 lines | 550 B | text/x-minidsrc | MarkdownLexer
workflow: add a default template for Merge Request...
r50111 /assign_reviewer @mercurial.review
Matt Harbison
mr-template: wrap the instructions inside a comment block...
r50430
<!--
workflow: add a default template for Merge Request...
r50111 Welcome to the Mercurial Merge Request creation process:
* Set a simple title for your MR,
* All important information should be contained in your changesets' content or description,
* You can add some workflow-relevant information here (eg: when this depends on another MR),
* If your changes are not ready for review yet, click `Start the title with Draft:` under the title.
More details here:
* https://www.mercurial-scm.org/wiki/ContributingChanges
* https://www.mercurial-scm.org/wiki/Heptapod
Matt Harbison
mr-template: wrap the instructions inside a comment block...
r50430
-->