Show More
@@ -32,6 +32,7 b' from .. import (' | |||
|
32 | 32 | patch, |
|
33 | 33 | pathutil, |
|
34 | 34 | pycompat, |
|
35 | scmutil, | |
|
35 | 36 | templatefilters, |
|
36 | 37 | templatekw, |
|
37 | 38 | ui as uimod, |
@@ -303,7 +304,7 b' def changectx(repo, req):' | |||
|
303 | 304 | if ipos != -1: |
|
304 | 305 | changeid = changeid[(ipos + 1):] |
|
305 | 306 | |
|
306 |
return repo |
|
|
307 | return scmutil.revsymbol(repo, changeid) | |
|
307 | 308 | |
|
308 | 309 | def basechangectx(repo, req): |
|
309 | 310 | if 'node' in req.qsparams: |
@@ -311,7 +312,7 b' def basechangectx(repo, req):' | |||
|
311 | 312 | ipos = changeid.find(':') |
|
312 | 313 | if ipos != -1: |
|
313 | 314 | changeid = changeid[:ipos] |
|
314 |
return repo |
|
|
315 | return scmutil.revsymbol(repo, changeid) | |
|
315 | 316 | |
|
316 | 317 | return None |
|
317 | 318 | |
@@ -326,7 +327,7 b' def filectx(repo, req):' | |||
|
326 | 327 | else: |
|
327 | 328 | raise ErrorResponse(HTTP_NOT_FOUND, 'node or filenode not given') |
|
328 | 329 | try: |
|
329 |
fctx = repo |
|
|
330 | fctx = scmutil.revsymbol(repo, changeid)[path] | |
|
330 | 331 | except error.RepoError: |
|
331 | 332 | fctx = repo.filectx(path, fileid=changeid) |
|
332 | 333 |
General Comments 0
You need to be logged in to leave comments.
Login now