6 # of the GNU General Public License, incorporated herein by reference. |
6 # of the GNU General Public License, incorporated herein by reference. |
7 |
7 |
8 import os, mimetypes |
8 import os, mimetypes |
9 from mercurial import revlog, util, hg |
9 from mercurial import revlog, util, hg |
10 from common import staticfile, ErrorResponse |
10 from common import staticfile, ErrorResponse |
|
11 |
|
12 # __all__ is populated with the allowed commands. Be sure to add to it if |
|
13 # you're adding a new command, or the new command won't work. |
|
14 |
|
15 __all__ = [ |
|
16 'log', 'rawfile', 'file', 'changelog', 'shortlog', 'changeset', 'rev', |
|
17 'manifest', 'tags', 'summary', 'filediff', 'diff', 'annotate', 'filelog', |
|
18 'archive', 'static', |
|
19 ] |
11 |
20 |
12 def log(web, req, tmpl): |
21 def log(web, req, tmpl): |
13 if 'file' in req.form and req.form['file'][0]: |
22 if 'file' in req.form and req.form['file'][0]: |
14 filelog(web, req, tmpl) |
23 filelog(web, req, tmpl) |
15 else: |
24 else: |