equal
deleted
inserted
replaced
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: |