Show More
@@ -53,16 +53,15 b' def rawfile(web, req, tmpl):' | |||
|
53 | 53 | |
|
54 | 54 | def file(web, req, tmpl): |
|
55 | 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 | 61 | try: |
|
58 |
return web. |
|
|
59 |
except |
|
|
60 |
|
|
|
61 | ||
|
62 | try: | |
|
63 | return web.manifest(tmpl, web.changectx(req), path) | |
|
64 | except ErrorResponse: | |
|
65 | raise inst | |
|
62 | return web.manifest(tmpl, web.changectx(req), path) | |
|
63 | except ErrorResponse: | |
|
64 | raise inst | |
|
66 | 65 | |
|
67 | 66 | def changelog(web, req, tmpl, shortlog = False): |
|
68 | 67 | if 'node' in req.form: |
General Comments 0
You need to be logged in to leave comments.
Login now