[Bug 5908] New: hgwebdir.wsgi getting repos from dir and subdir
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Tue Jun 5 08:04:58 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5908
Bug ID: 5908
Summary: hgwebdir.wsgi getting repos from dir and subdir
Product: Mercurial
Version: 4.6
Hardware: PC
OS: Other
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: cybermerlin at ya.ru
CC: mercurial-devel at mercurial-scm.org
on localhost/repos
I see - nothig (just blue header with links)
on localhost/repos/web
same
on localhost/repos/web/webproj2
I see correct (source n all)
I've dirs:
/var/repos/
proj1/
proj2/
web/
webproj1/
webproj2/
`hgweb.config`
```
[ui]
username = pupi <pupi at xxx.com>
usehttp2 = true
[paths]
/ = /var/repos/*
/web = /var/repos/web/*
[web]
descend = True
collapse= True
baseurl=
style= monoblue
allow_push= hguser
allow_read= hguser
push_ssl= true
encoding= utf-8
charsets= utf-8
[hooks]
changegroup =
changegroup.mod_wsgi = touch /var/repos/hgwebdir.wsgi
[extensions]
highlight =
```
`hgwebdir.wsgi`
```
config = "/var/repos/hgweb.config"
import os
os.environ["HGENCODING"] = "UTF-8"
os.environ["HGRCPATH"] = "/var/repos/hgweb.hgrc"
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb.hgweb_mod import hgweb
from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication
application = hgwebdir(config)
```
what I doing wrong?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list