Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 7280:810ca383da9c
remove unused variables
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 28 Oct 2008 19:25:26 +0100 |
parents | 099b4f9be5ab |
children | 9c399c53469d |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Tue Oct 28 19:07:14 2008 +0100 +++ b/mercurial/hgweb/webcommands.py Tue Oct 28 19:25:26 2008 +0100 @@ -59,8 +59,6 @@ def _filerevision(web, tmpl, fctx): f = fctx.path() text = fctx.data() - fl = fctx.filelog() - n = fctx.filenode() parity = paritygen(web.stripecount) if binary(text): @@ -420,7 +418,7 @@ fctx, ctx = None, None try: fctx = webutil.filectx(web.repo, req) - except LookupError, inst: + except LookupError: ctx = webutil.changectx(web.repo, req) path = webutil.cleanpath(web.repo, req.form['file'][0]) if path not in ctx.files(): @@ -458,8 +456,6 @@ def annotate(web, req, tmpl): fctx = webutil.filectx(web.repo, req) f = fctx.path() - n = fctx.filenode() - fl = fctx.filelog() parity = paritygen(web.stripecount) def annotate(**map): @@ -520,7 +516,6 @@ for i in xrange(start, end): ctx = fctx.filectx(i) - n = fl.node(i) l.insert(0, {"parity": parity.next(), "filerev": i,