Submitter | Angel Ezquerra |
---|---|
Date | Feb. 6, 2013, 5:24 p.m. |
Message ID | <afcc0c47345e45fbf785.1360171442@Angel-PC.localdomain> |
Download | mbox | patch |
Permalink | /patch/819/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -813,8 +813,13 @@ req.respond(HTTP_OK, mimetype) ctx = webutil.changectx(web.repo, req) + pats = [] + file = req.form.get('file', None) + if file: + pats = [req.form['file'][0]] + matchfn = scmutil.match(ctx, pats, default='path') archival.archive(web.repo, req, cnode, artype, prefix=name, - matchfn=scmutil.match(ctx, []), + matchfn=matchfn, subrepos=web.configbool("web", "archivesubrepos")) return []