##// END OF EJS Templates
hgweb: inline changeidctx()...
Martin von Zweigbergk -
r37350:6407507e default
parent child Browse files
Show More
@@ -295,9 +295,6 b' def cleanpath(repo, path):'
295 path = path.lstrip('/')
295 path = path.lstrip('/')
296 return pathutil.canonpath(repo.root, '', path)
296 return pathutil.canonpath(repo.root, '', path)
297
297
298 def changeidctx(repo, changeid):
299 return repo[changeid]
300
301 def changectx(repo, req):
298 def changectx(repo, req):
302 changeid = "tip"
299 changeid = "tip"
303 if 'node' in req.qsparams:
300 if 'node' in req.qsparams:
@@ -306,7 +303,7 b' def changectx(repo, req):'
306 if ipos != -1:
303 if ipos != -1:
307 changeid = changeid[(ipos + 1):]
304 changeid = changeid[(ipos + 1):]
308
305
309 return changeidctx(repo, changeid)
306 return repo[changeid]
310
307
311 def basechangectx(repo, req):
308 def basechangectx(repo, req):
312 if 'node' in req.qsparams:
309 if 'node' in req.qsparams:
@@ -314,7 +311,7 b' def basechangectx(repo, req):'
314 ipos = changeid.find(':')
311 ipos = changeid.find(':')
315 if ipos != -1:
312 if ipos != -1:
316 changeid = changeid[:ipos]
313 changeid = changeid[:ipos]
317 return changeidctx(repo, changeid)
314 return repo[changeid]
318
315
319 return None
316 return None
320
317
General Comments 0
You need to be logged in to leave comments. Login now