यहां mod_wsgi (फास्ट!), संयुक्त भंडार निर्देशिका का उपयोग करके एक वैकल्पिक सेटअप है, और आप VisualSVN सर्वर GUI से Mercurial रिपॉजिटरी स्तर का उपयोग प्रबंधित कर सकते हैं।
mod_wsgi.so for Apache 2.2 Win32 डाउनलोड करें और "सी: \ प्रोग्राम फ़ाइलें \ VisualSVN सर्वर \ bin" में रखें।
अपनी Mercurial स्थापना (contrib निर्देशिका) से hgwebdir.wsgi को "सी: \ प्रोग्राम फ़ाइलें \ VisualSVN सर्वर \" पर कॉपी करें। यह कुछ इस तरह दिखना चाहिए:
import sys
sys.path.insert(0, "C:\Program Files\Mercurial\library")
from mercurial.hgweb.hgwebdir_mod import hgwebdir
application = hgwebdir('hgweb.config')
कॉन्फ़िग फ़ाइल ": \ Program Files \ VisualSVN सर्वर \ hgweb.config सी" बनाएँ।
[paths]
/= c:/Repositories/*
"सी: \ प्रोग्राम फ़ाइलें \ VisualSVN सर्वर \ conf \ httpd-custom.conf" में निम्नलिखित पेस्ट करें। आपको httpd.conf के अनुभाग के आधार पर Auth * मान समायोजित करना चाहिए।
hg init C:\Repositories\hgtest
अब आप VisualSVN सर्वर उपकरण के माध्यम से अपने ब्राउज़र के माध्यम से/एचजी तक पहुँचने के लिए, और प्रबंधित भंडार स्तर प्राधिकरण सक्षम होना चाहिए:
LoadModule wsgi_module bin/mod_wsgi.so
WSGIScriptAlias /hg "hgwebdir.wsgi"
<Location /hg/>
AuthName "Mercurial Repositories"
AuthType VisualSVN
AuthzVisualSVNAccessFile "C:/Repositories/authz-windows"
AuthnVisualSVNBasic on
AuthnVisualSVNIntegrated off
AuthnVisualSVNUPN Off
SVNParentPath "C:/Repositories/"
require valid-user
</Location>
एक मर्क्युरियल भंडार बनाएँ।
मैं इस अब दो दिनों के लिए पता लगाने की कोशिश की है !! इच्छा है कि मेरा जवाब था। –
आपको ScriptAlias के अंतिम तर्क के लिए एक पूर्ण पथ का उपयोग करना होगा। –