水銀インストール †CGIがあるので、xrea(coreserver)でも動くだろうということで、インストールしてみました。 Install †まず、meruciral自体をインストールします。(http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall) $ tar xzvf mercurial-0.9.5.tar.gz $ cd mercurial-0.9.5 $ HOME=$HOME/local make install-home として、$(HOME)/local/bin, $(HOME)/local/libにインストールされます。 いちおうテストとして $ export PYTHONPATH=$HOME/local/lib/python $ export PATH=$PATH:$HOME/local/bin $ hg debuginstall Checking encoding (UTF-8)... Checking extensions... Checking templates... Checking patch... Checking merge helper... Checking commit editor... Checking username... No username found, using 'hoge@somewhere' instead (specify a username in your .hgrc file) No problems detected とりあえずOKとしましょう。 CGI Install †http://www.selenic.com/mercurial/wiki/index.cgi/CGI_Install でなくて http://www.selenic.com/mercurial/wiki/index.cgi/HgWebDirStepByStep こちらでやってみました。複数レポジトリができます。 hgwebdir.cgi †hgwebdir.cgiをDocumentRoot?にコピーします。で、以下のように修正します。 # An example CGI script to export multiple hgweb repos, edit as necessary # adjust python path if not a system-wide install: -#import sys -#sys.path.insert(0, "/path/to/python/lib") +import sys +sys.path.insert(0, "/virtual/..../local/lib/python") # enable importing on demand to reduce startup time from mercurial import demandimport; demandimport.enable() hgweb.configを同じところに作ります。 [collections] /virtual/..../repos/ = /virtual/..../repos/ [web] style = gitweb こんな感じで、次に、.htaccessを Options +ExecCGI RewriteEngine on RewriteRule ^hgwebdir.cgi - [L] RewriteRule ^(.*) /hgwebdir.cgi/$1 という感じにしました。 |