Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 43980:3e4294aa7944
hgweb: drop an unused variable assignment
Caught by PyCharm.
Differential Revision: https://phab.mercurial-scm.org/D7748
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 14:58:02 -0500 |
parents | 6ff1a0d109c9 |
children | 91aa9bba3dc9 |
comparison
equal
deleted
inserted
replaced
43979:bdb357161d7a | 43980:3e4294aa7944 |
---|---|
1266 if cnode == key or key == b'tip': | 1266 if cnode == key or key == b'tip': |
1267 arch_version = short(cnode) | 1267 arch_version = short(cnode) |
1268 name = b"%s-%s" % (reponame, arch_version) | 1268 name = b"%s-%s" % (reponame, arch_version) |
1269 | 1269 |
1270 ctx = webutil.changectx(web.repo, web.req) | 1270 ctx = webutil.changectx(web.repo, web.req) |
1271 pats = [] | |
1272 match = scmutil.match(ctx, []) | 1271 match = scmutil.match(ctx, []) |
1273 file = web.req.qsparams.get(b'file') | 1272 file = web.req.qsparams.get(b'file') |
1274 if file: | 1273 if file: |
1275 pats = [b'path:' + file] | 1274 pats = [b'path:' + file] |
1276 match = scmutil.match(ctx, pats, default=b'path') | 1275 match = scmutil.match(ctx, pats, default=b'path') |