Mercurial > hg
comparison mercurial/repocache.py @ 43117:8ff1ecfadcd1
cleanup: join string literals that are already on one line
Thanks to Kyle for noticing this and for providing the regular
expression to run on the codebase.
This patch has been reviewed by the test suite and they approved of
it.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D7028
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 08 Oct 2019 15:06:18 -0700 |
parents | 687b865b95ad |
children | 6000f5b25c9b |
comparison
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: |