Show More
@@ -19,7 +19,15 b' debug = true' | |||
|
19 | 19 | #error_message = 'mercurial crash !' |
|
20 | 20 | |
|
21 | 21 | [server:main] |
|
22 | ##nr of threads to spawn | |
|
22 | 23 | threadpool_workers = 5 |
|
24 | ||
|
25 | ##max request before | |
|
26 | threadpool_max_requests = 2 | |
|
27 | ||
|
28 | ##option to use threads of process | |
|
29 | use_threadpool = true | |
|
30 | ||
|
23 | 31 | use = egg:Paste#http |
|
24 | 32 | host = 127.0.0.1 |
|
25 | 33 | port = 5000 |
@@ -19,7 +19,15 b' debug = true' | |||
|
19 | 19 | #error_message = 'mercurial crash !' |
|
20 | 20 | |
|
21 | 21 | [server:main] |
|
22 | threadpool_workers = 10 | |
|
22 | ##nr of threads to spawn | |
|
23 | threadpool_workers = 5 | |
|
24 | ||
|
25 | ##max request before | |
|
26 | threadpool_max_requests = 2 | |
|
27 | ||
|
28 | ##option to use threads of process | |
|
29 | use_threadpool = true | |
|
30 | ||
|
23 | 31 | use = egg:Paste#http |
|
24 | 32 | host = 127.0.0.1 |
|
25 | 33 | port = 8001 |
@@ -51,10 +51,9 b' def make_app(global_conf, full_stack=Tru' | |||
|
51 | 51 | # Display error documents for 401, 403, 404 status codes (and |
|
52 | 52 | # 500 when debug is disabled) |
|
53 | 53 | if asbool(config['debug']): |
|
54 | #don't handle 404, since mercurial does it for us. | |
|
55 | app = StatusCodeRedirect(app, [400, 401, 403]) | |
|
54 | app = StatusCodeRedirect(app) | |
|
56 | 55 | else: |
|
57 | app = StatusCodeRedirect(app, [400, 401, 403, 500]) | |
|
56 | app = StatusCodeRedirect(app, [400, 401, 403, 404, 500]) | |
|
58 | 57 | |
|
59 | 58 | # Establish the Registry for this application |
|
60 | 59 | app = RegistryManager(app) |
@@ -7,6 +7,7 b' from pylons_app.lib.base import BaseCont' | |||
|
7 | 7 | from pylons_app.lib.utils import get_repo_slug |
|
8 | 8 | from pylons_app.model.hg_model import HgModel |
|
9 | 9 | from webhelpers.paginate import Page |
|
10 | ||
|
10 | 11 | log = logging.getLogger(__name__) |
|
11 | 12 | |
|
12 | 13 | class ShortlogController(BaseController): |
@@ -24,12 +25,10 b' class ShortlogController(BaseController)' | |||
|
24 | 25 | cnt = repo.revisions[-1] |
|
25 | 26 | gen = repo.get_changesets(None) |
|
26 | 27 | repo_changesets = list(gen) |
|
27 | repo_changesets2 = list(gen) | |
|
28 | repo_changesets3 = list(gen) | |
|
29 | repo_changesets4 = list(gen) | |
|
30 | 28 | |
|
31 | 29 | c.repo_changesets = Page(repo_changesets, page=p, item_count=cnt, items_per_page=lim) |
|
32 | 30 | c.shortlog_data = render('shortlog_data.html') |
|
33 | 31 | if request.params.get('partial'): |
|
34 | 32 | return c.shortlog_data |
|
35 |
r |
|
|
33 | r = render('/shortlog.html') | |
|
34 | return r |
General Comments 0
You need to be logged in to leave comments.
Login now