Show More
@@ -193,16 +193,14 b' def changelog(web, req, tmpl, shortlog=F' | |||||
193 | query = '' |
|
193 | query = '' | |
194 | if 'node' in req.form: |
|
194 | if 'node' in req.form: | |
195 | ctx = webutil.changectx(web.repo, req) |
|
195 | ctx = webutil.changectx(web.repo, req) | |
196 | else: |
|
196 | elif 'rev' in req.form: | |
197 | if 'rev' in req.form: |
|
197 | query = req.form['rev'][0] | |
198 | query = req.form['rev'][0] |
|
|||
199 | hi = query |
|
|||
200 | else: |
|
|||
201 | hi = 'tip' |
|
|||
202 | try: |
|
198 | try: | |
203 |
ctx = web.repo[ |
|
199 | ctx = web.repo[query] | |
204 | except (error.RepoError, error.LookupError): |
|
200 | except (error.RepoError, error.LookupError): | |
205 | return _search(web, req, tmpl) # XXX redirect to 404 page? |
|
201 | return _search(web, req, tmpl) # XXX redirect to 404 page? | |
|
202 | else: | |||
|
203 | ctx = web.repo['tip'] | |||
206 |
|
204 | |||
207 | def changelist(latestonly, **map): |
|
205 | def changelist(latestonly, **map): | |
208 | revs = [] |
|
206 | revs = [] |
General Comments 0
You need to be logged in to leave comments.
Login now