equal
deleted
inserted
replaced
3 # Copyright 2018 Yuya Nishihara <yuya@tcha.org> |
3 # Copyright 2018 Yuya Nishihara <yuya@tcha.org> |
4 # |
4 # |
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from __future__ import absolute_import |
|
9 |
8 |
10 import collections |
9 import collections |
11 import gc |
10 import gc |
12 import threading |
11 import threading |
13 |
12 |
18 scmutil, |
17 scmutil, |
19 util, |
18 util, |
20 ) |
19 ) |
21 |
20 |
22 |
21 |
23 class repoloader(object): |
22 class repoloader: |
24 """Load repositories in background thread |
23 """Load repositories in background thread |
25 |
24 |
26 This is designed for a forking server. A cached repo cannot be obtained |
25 This is designed for a forking server. A cached repo cannot be obtained |
27 until the server fork()s a worker and the loader thread stops. |
26 until the server fork()s a worker and the loader thread stops. |
28 """ |
27 """ |