Mercurial > hg
comparison mercurial/hgweb/webcommands.py @ 18645:76ff3a715cf2
hgweb: simplify internal staticfile return codes
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 10 Feb 2013 18:24:29 +0100 |
parents | 3490c91a1fcb |
children | f5db3092790f |
comparison
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() |