mercurial/hgweb/webcommands.py
branchstable
changeset 23232 a0ccb66f344d
parent 22634 e48a5d3996c2
child 23689 4fedf2a9b538
equal deleted inserted replaced
23231:32dadb2637f4 23232:a0ccb66f344d
   899         arch_version = short(cnode)
   899         arch_version = short(cnode)
   900     name = "%s-%s" % (reponame, arch_version)
   900     name = "%s-%s" % (reponame, arch_version)
   901 
   901 
   902     ctx = webutil.changectx(web.repo, req)
   902     ctx = webutil.changectx(web.repo, req)
   903     pats = []
   903     pats = []
   904     matchfn = None
   904     matchfn = scmutil.match(ctx, [])
   905     file = req.form.get('file', None)
   905     file = req.form.get('file', None)
   906     if file:
   906     if file:
   907         pats = ['path:' + file[0]]
   907         pats = ['path:' + file[0]]
   908         matchfn = scmutil.match(ctx, pats, default='path')
   908         matchfn = scmutil.match(ctx, pats, default='path')
   909         if pats:
   909         if pats: