Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGffd632c224c3: vfs: another bytes-str confusion on thread name
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/vfs.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6ca175295632 | 78f663bdaa62 | Augie Fackler | Nov 6 2019, 3:29 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
ui.debug( | ui.debug( | ||||
b'starting %d threads for background file closing\n' % threadcount | b'starting %d threads for background file closing\n' % threadcount | ||||
) | ) | ||||
self._queue = pycompat.queue.Queue(maxsize=maxqueue) | self._queue = pycompat.queue.Queue(maxsize=maxqueue) | ||||
self._running = True | self._running = True | ||||
for i in range(threadcount): | for i in range(threadcount): | ||||
t = threading.Thread(target=self._worker, name=b'backgroundcloser') | t = threading.Thread(target=self._worker, name='backgroundcloser') | ||||
self._threads.append(t) | self._threads.append(t) | ||||
t.start() | t.start() | ||||
def __enter__(self): | def __enter__(self): | ||||
self._entered = True | self._entered = True | ||||
return self | return self | ||||
def __exit__(self, exc_type, exc_value, exc_tb): | def __exit__(self, exc_type, exc_value, exc_tb): |