diff -r a755fd3b7146 -r 8ddb5c354906 mercurial/hgweb/request.py --- a/mercurial/hgweb/request.py Sat Mar 10 14:00:40 2018 -0800 +++ b/mercurial/hgweb/request.py Sat Mar 10 14:06:58 2018 -0800 @@ -144,6 +144,8 @@ # Whether there is a path component to this request. This can be true # when ``dispatchpath`` is empty due to REPO_NAME muckery. havepathinfo = attr.ib() + # The name of the repository being accessed. + reponame = attr.ib() # Raw query string (part after "?" in URL). querystring = attr.ib() # multidict of query string parameters. @@ -282,6 +284,7 @@ apppath=apppath, dispatchparts=dispatchparts, dispatchpath=dispatchpath, havepathinfo='PATH_INFO' in env, + reponame=env.get('REPO_NAME'), querystring=querystring, qsparams=qsparams, headers=headers,