Caught by PyCharm.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG3e4294aa7944: hgweb: drop an unused variable assignment
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Caught by PyCharm.
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/hgweb/webcommands.py (1 line) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
c27211541aac | a754f22c38d7 | Matt Harbison | Dec 27 2019, 2:58 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 |
reponame = re.sub(br"\W+", b"-", os.path.basename(web.reponame)) | reponame = re.sub(br"\W+", b"-", os.path.basename(web.reponame)) | ||||
cnode = web.repo.lookup(key) | cnode = web.repo.lookup(key) | ||||
arch_version = key | arch_version = key | ||||
if cnode == key or key == b'tip': | if cnode == key or key == b'tip': | ||||
arch_version = short(cnode) | arch_version = short(cnode) | ||||
name = b"%s-%s" % (reponame, arch_version) | name = b"%s-%s" % (reponame, arch_version) | ||||
ctx = webutil.changectx(web.repo, web.req) | ctx = webutil.changectx(web.repo, web.req) | ||||
pats = [] | |||||
match = scmutil.match(ctx, []) | match = scmutil.match(ctx, []) | ||||
file = web.req.qsparams.get(b'file') | file = web.req.qsparams.get(b'file') | ||||
if file: | if file: | ||||
pats = [b'path:' + file] | pats = [b'path:' + file] | ||||
match = scmutil.match(ctx, pats, default=b'path') | match = scmutil.match(ctx, pats, default=b'path') | ||||
if pats: | if pats: | ||||
files = [f for f in ctx.manifest().keys() if match(f)] | files = [f for f in ctx.manifest().keys() if match(f)] | ||||
if not files: | if not files: |