Show More
@@ -53,16 +53,15 b' def rawfile(web, req, tmpl):' | |||||
53 |
|
53 | |||
54 | def file(web, req, tmpl): |
|
54 | def file(web, req, tmpl): | |
55 | path = web.cleanpath(req.form.get('file', [''])[0]) |
|
55 | path = web.cleanpath(req.form.get('file', [''])[0]) | |
56 | if path: |
|
56 | if not path: | |
|
57 | return web.manifest(tmpl, web.changectx(req), path) | |||
|
58 | try: | |||
|
59 | return web.filerevision(tmpl, web.filectx(req)) | |||
|
60 | except revlog.LookupError, inst: | |||
57 | try: |
|
61 | try: | |
58 |
return web. |
|
62 | return web.manifest(tmpl, web.changectx(req), path) | |
59 |
except |
|
63 | except ErrorResponse: | |
60 |
|
|
64 | raise inst | |
61 |
|
||||
62 | try: |
|
|||
63 | return web.manifest(tmpl, web.changectx(req), path) |
|
|||
64 | except ErrorResponse: |
|
|||
65 | raise inst |
|
|||
66 |
|
65 | |||
67 | def changelog(web, req, tmpl, shortlog = False): |
|
66 | def changelog(web, req, tmpl, shortlog = False): | |
68 | if 'node' in req.form: |
|
67 | if 'node' in req.form: |
General Comments 0
You need to be logged in to leave comments.
Login now