Skip to content
Snippets Groups Projects
  1. Feb 18, 2022
  2. Feb 17, 2022
  3. Jan 31, 2022
    • Anton Shestakov's avatar
      obsolete: don't use os.stat in repo.obsstore.__nonzero__ if it's static HTTP · ef50a62eec40
      Anton Shestakov authored
      If a repo is accessed via static HTTP, then we obviously can't use os.stat() to
      just peek at the file size. Let's download the entire file to check its size.
      Yes, this feels wasteful, but:
      
      1. If we're cloning or pulling a repo from a static HTTP server, we need the
         contents of the obsstore anyway.
      
      2. Implementing statichttpvfs.stat() that uses HEAD will result in one more
         request to a static-only HTTP server, which is already slow. Also parsing a
         response to a HEAD request to construct os.stat_result is pretty hacky.
         There's also a question of the remote server properly supporting HEAD method
         and reporting at least file size.
      
      3. Implementing statichttpvfs.stat() that uses GET is pretty much the same
         thing as we do here, except we can't even cache the response easily, unlike
         simply accessing obsstore._data, which is @propertycache'd.
      
      Importing statichttprepo locally to avoid circular import.
      
      See also: 4507bc001365 and commit message of f8f2ecdde4b5.
      
      Differential Revision: https://phab.mercurial-scm.org/D12195
      ef50a62eec40
  4. Aug 26, 2021
  5. Aug 27, 2021
  6. Feb 15, 2022
  7. Feb 12, 2022
  8. Feb 16, 2022
  9. Feb 15, 2022
  10. Feb 16, 2022
  11. Feb 12, 2022
    • Martin von Zweigbergk's avatar
      filemerge: put temporary files in single temp dir by default · b70c9697ab41
      Martin von Zweigbergk authored
      The feature introduced in D2888 seems like a pure improvement to
      me. It makes the names' of temporary file easier to read. Let's have
      it always enabled.
      
      I also removed the config option for the path prefix because it
      doesn't seem useful. I asked Kyle (the author of the feature) about it
      and he couldn't think of a reason to keep it. I suspect it was just
      that we to have a config to turn it on/off while it was experimental,
      so it might as well be a configurable prefix then.
      
      Differential Revision: https://phab.mercurial-scm.org/D12171
      b70c9697ab41
  12. Feb 15, 2022
  13. Nov 26, 2021
  14. Feb 07, 2022
  15. Feb 14, 2022
  16. Feb 15, 2022
  17. Feb 14, 2022
  18. Feb 11, 2022
  19. Feb 15, 2022
  20. Feb 10, 2022
  21. Feb 11, 2022
  22. Jan 28, 2022
Loading