Skip to content
Snippets Groups Projects
  1. Mar 24, 2022
  2. Mar 29, 2022
    • Yuya Nishihara's avatar
      tags: fix typo in fast path detection of fnode resolution (issue6673) · d4b66dc5
      Yuya Nishihara authored
      If I understand it, mctx.readfast() is unreliable here if p1/p2 .hgtags
      nodes differ, and tags on that branch would be randomly discarded
      depending on which parent were picked.
      
      The test case added by this patch would fail only on zstd-compressed
      repository. I didn't try hard to stabilize the failure case.
      d4b66dc5
  3. Mar 28, 2022
  4. Mar 22, 2022
  5. Mar 21, 2022
    • Martin von Zweigbergk's avatar
      unamend: abort if commit was not created by `hg [un]amend` · 9120c0cd
      Martin von Zweigbergk authored
      `hg unamend` can currently undo any kind of rewrite, as long as it has
      an obsmarker. However, that has quite unexpected results if you run it
      after e.g. `hg rebase` (expecting it to behave like a generic `hg
      undo` command), because it updates to the predecessor and leaves the
      old changes in the working copy. I think it's better to allow `hg
      unamend` only after `hg amend` (and after `hg unamend` because that's
      documented as being supported).
      
      Differential Revision: https://phab.mercurial-scm.org/D12390
      9120c0cd
  6. Mar 17, 2022
  7. Mar 19, 2022
  8. Mar 18, 2022
  9. Mar 15, 2022
  10. Mar 14, 2022
  11. Mar 01, 2022
  12. Feb 28, 2022
  13. Feb 21, 2022
  14. Feb 18, 2022
  15. Feb 22, 2022
  16. Feb 18, 2022
  17. Feb 17, 2022
  18. Jan 31, 2022
    • Anton Shestakov's avatar
      obsolete: don't use os.stat in repo.obsstore.__nonzero__ if it's static HTTP · ef50a62e
      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
      ef50a62e
  19. Aug 26, 2021
  20. Aug 27, 2021
  21. Feb 15, 2022
Loading