Skip to content
Snippets Groups Projects

move .hg/topic-namespace check/removal from reading the file to acquiring wlock

Merged Anton Shestakov requested to merge topic/stable/cleanup-tns-wlock into branch/stable
  1. Mar 11, 2024
    • Anton Shestakov's avatar
      topic: drop _cleanup_tns_file(), move code directly into wlock() · ce3723b78f91
      Anton Shestakov authored
      This way we don't even have to make any assertions about wlock status. This
      should be safe, since we have the wlock and it's held, and other processes
      cannot acquire it and start messing with wdir, but we're also not inside any
      context managers that could be using the wlock, so it cannot be suddenly
      released either.
      ce3723b78f91
  2. Feb 28, 2024
Loading