Skip to content
Snippets Groups Projects
  1. Oct 25, 2021
  2. Nov 18, 2021
    • Pierre-Yves David's avatar
      status: use filesystem time boundary to invalidate racy mtime · 322525db
      Pierre-Yves David authored
      We record the filesystem time at the start of the status walk and use that as a
      boundary to detect files that might be modified during (or right after) the
      status run without the mtime allowing that edition to be detected.  We
      currently do this at a second precision. In a later patch, we will use
      nanosecond precision when available.
      
      To cope with "broken" time on the file system where file could be in the
      future, we also keep mtime for file over one day in the future. See inline
      comment for details.
      
      Large file tests get a bit more confused as we reduce the odds for race
      condition.
      
      As a "side effect", the win32text extension is happy again.
      
      Differential Revision: https://phab.mercurial-scm.org/D11794
      322525db
    • Pierre-Yves David's avatar
      test: use a different timestamp for the updated file · 03644a92
      Pierre-Yves David authored
      In the test we want to trigger a write after the underlying dirstate changed. To
      do so, we need a write. And as we are about to make dirstate update smarter we
      need to meddle with the script a bit to make sure there will be a write.
      
      Differential Revision: https://phab.mercurial-scm.org/D11793
      03644a92
  3. Nov 23, 2021
  4. Nov 17, 2021
  5. Nov 22, 2021
    • Pierre-Yves David's avatar
      dirstate: do no use `set_clean` in revert · 9f1b9e12
      Pierre-Yves David authored
      The current `set_clean` usage is racy (the file might be modified between its
      restoration and the `set_clean` call).
      
      So we simply leave the file as ambiguous and the next status will fix that.
      
      We still have to make sure the copy information is dropped, so we teach dirstate
      how to do that.
      
      The win32txt extension is confused after this because current logic is broken in
      more location. However this series will ultimately fix that so we "ignore" it
      for now. Fixing it now is complicated without some extra fix landing later.
      
      Differential Revision: https://phab.mercurial-scm.org/D11788
      9f1b9e12
  6. Nov 18, 2021
  7. Nov 17, 2021
  8. Oct 25, 2021
  9. Nov 23, 2021
  10. Nov 17, 2021
  11. Nov 04, 2021
  12. Nov 30, 2021
  13. Oct 18, 2021
  14. Nov 23, 2021
  15. Nov 20, 2021
  16. Nov 19, 2021
  17. Nov 26, 2021
  18. Nov 29, 2021
  19. Nov 26, 2021
  20. Nov 24, 2021
  21. Nov 16, 2021
  22. Nov 29, 2021
  23. Nov 11, 2021
  24. Nov 25, 2021
Loading