mercurial/repocache.py
changeset 43117 8ff1ecfadcd1
parent 43077 687b865b95ad
child 48875 6000f5b25c9b
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
    68         is stopped. Otherwise, the returned repo might be updated by the
    68         is stopped. Otherwise, the returned repo might be updated by the
    69         loader thread.
    69         loader thread.
    70         """
    70         """
    71         if self._thread and self._thread.is_alive():
    71         if self._thread and self._thread.is_alive():
    72             raise error.ProgrammingError(
    72             raise error.ProgrammingError(
    73                 b'cannot obtain cached repo while ' b'loader is active'
    73                 b'cannot obtain cached repo while loader is active'
    74             )
    74             )
    75         return self._cache.peek(path, None)
    75         return self._cache.peek(path, None)
    76 
    76 
    77     def _mainloop(self):
    77     def _mainloop(self):
    78         while self._accepting:
    78         while self._accepting: