Both hgwebdir.cgi and webserve-dir.cgi are mbcs broken
Dongsheng Song
dongsheng.song at gmail.com
Sat Feb 3 01:47:55 GMT 2007
2007/2/3, Goffredo Baroncelli <kreijack at tiscalinet.it>:
> is it possible to get your repository ? For example webserve crash if you
> browse the directory
>
> /layout/service/
>
> (http://www.foresee.com.cn:9999/webserve/scratch?cmd=inventory;rev=dongsheng.song%40gmail.com-20070202110557-gfgeg6bz14l9fln0;path=layout/service/)
>
> I am interested in analize the problem
>
> Goffredo
>
You Can get from http://www.foresee.com.cn:9999/scratch.tar.bz2, and
the following is related information.
apache2.conf:
ScriptAlias /webserve
/usr/share/pycentral/bzr/site-packages/bzrlib/plugins/webserve/webserve-dir.cgi
<Location /webserve>
Order allow,deny
Allow from all
</Location>
----------------------------------------------------------------
[/usr/share/pycentral/bzr/site-packages/bzrlib/plugins/webserve]$ bzr log
revno: 229
committer: ghigo <ghigo at vs6154.areaserver.it>
branch nick: bws-tmp
timestamp: Sun 2006-12-31 10:48:46 +0100
message:
xmas update
...
----------------------------------------------------------------
$ bzr --version
Bazaar (bzr) 0.14.0
Using python interpreter: /usr/bin/python
Using python standard library: /usr/lib/python2.4
Using bzrlib: /usr/lib/python2.4/site-packages/bzrlib
----------------------------------------------------------------
$ cat webserve-dir.cgi
#!/usr/bin/env python
....
import os
import sys
os.environ["HGENCODING"] = "GB18030"
# path of the bazaar-ng installation
# in the _example_ below it is suppose that webserve is installed
# under bzrlib/plugins/webserve
sys.path.insert(0,"/usr/share/pycentral/bzr/site-packages")
from bzrlib.plugins.webserve import hgweb
config = "/usr/share/pycentral/bzr/site-packages/bzrlib/plugins/webserve/bazaar-webserve.conf"
try:
config = os.environ['BAZAAR_WEBSERVE_CONFIG']
except KeyError:
pass
hgweb.cgi_start_webserve_dir(config)
----------------------------------------------------------------
$ cat bazaar-webserve.conf
[DEFAULT]
tararchive = 1
profile = 1
lock = 0
[bzr]
author = Goffredo Baroncelli
name = bazaar-ng
description = bazaar-ng development branch
path = /home/cauchy/wc/bzr/bzr
tararchive = 1
[webserve]
author = Goffredo Baroncelli
name = webserve
description = webserve development branch
path = /home/cauchy/wc/bzr/webserve
tararchive = 1
[scratch]
author = Dongsheng Song
name = scratch
description = My scratch repository
path = /home/cauchy/wc/bzr/scratch
tararchive = 1
More information about the bazaar
mailing list