Skip to content
Snippets Groups Projects
  1. Aug 01, 2024
  2. Jul 26, 2024
    • Julien Cristau's avatar
      demandimport: don't delay threading import · 63ede7a43a37
      Julien Cristau authored
      A recent cpython change breaks demandimport by importing threading
      locally in importlib.util.LazyLoader.exec_module; add it (plus warnings
      and _weakrefset, which are imported by threading) to demandimport's
      ignore list.
      
      ```
      Traceback (most recent call last):
        File "/usr/bin/hg", line 57, in <module>
          from mercurial import dispatch
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
        File "/usr/lib/python3/dist-packages/hgdemandimport/demandimportpy3.py", line 52, in exec_module
          super().exec_module(module)
        File "<frozen importlib.util>", line 257, in exec_module
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
        File "/usr/lib/python3/dist-packages/hgdemandimport/demandimportpy3.py", line 52, in exec_module
          super().exec_module(module)
        File "<frozen importlib.util>", line 267, in exec_module
      AttributeError: partially initialized module 'threading' has no attribute 'RLock' (most likely due to a circular import)
      ```
      
      Ref: https://github.com/python/cpython/issues/117983
           https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076449
           https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076747
      63ede7a43a37
  3. Jul 11, 2024
    • Matt Harbison's avatar
      win32mbcs: use str for encoding value · e6508d1e0b47
      Matt Harbison authored
      This was reported to the TortoiseHg tracker as:
      mercurial/tortoisehg/thg#5980
      
      It doesn't look like we have any tests for this extension, but the explicit
      type hints are enough to convince pytype that the module level `_encoding` attr
      is str.  The `encode()` and `decode()` methods are too complex to add type hints
      for them.
      e6508d1e0b47
  4. Jul 12, 2024
  5. Jul 08, 2024
  6. Jun 24, 2024
    • Jörg Sonnenberger's avatar
      portability: fix build on Solaris-derived systemd · e10b8388f27b
      Jörg Sonnenberger authored
      Current Illumos and older Solaris require _XOPEN_SOURCE for
      msg_control. O_DIRECTORY doesn't exist on older systems either,
      so fallback to O_RDONLY. It's good enough as a repository will
      require both R and X permission anyway.
      e10b8388f27b
  7. Jul 03, 2024
  8. Jun 24, 2024
  9. Jun 11, 2024
  10. Jun 13, 2024
  11. Jun 12, 2024
  12. Jun 11, 2024
  13. Sep 06, 2023
  14. Jun 10, 2024
Loading