mercurial/hgweb/webcommands.py
changeset 18645 76ff3a715cf2
parent 18581 3490c91a1fcb
child 18747 f5db3092790f
equal deleted inserted replaced
18644:3e92772d5383 18645:76ff3a715cf2
   840     if not static:
   840     if not static:
   841         tp = web.templatepath or templater.templatepath()
   841         tp = web.templatepath or templater.templatepath()
   842         if isinstance(tp, str):
   842         if isinstance(tp, str):
   843             tp = [tp]
   843             tp = [tp]
   844         static = [os.path.join(p, 'static') for p in tp]
   844         static = [os.path.join(p, 'static') for p in tp]
   845     return [staticfile(static, fname, req)]
   845     staticfile(static, fname, req)
       
   846     return []
   846 
   847 
   847 def graph(web, req, tmpl):
   848 def graph(web, req, tmpl):
   848 
   849 
   849     ctx = webutil.changectx(web.repo, req)
   850     ctx = webutil.changectx(web.repo, req)
   850     rev = ctx.rev()
   851     rev = ctx.rev()