With SCM-Manager, people can share and manage Git, Mercurial and Subversion repositories over http easily.
- Installing Java
- Download and install Java from https://www.java.com/en/download/index.jsp
- Installing Python with Hg
- Download Python 2.7 from http://www.python.org/download/, please note that they call x64 CPUs x86-64
- Download Mercurial for Python 2.7 from http://mercurial.selenic.com/downloads/
- Install Python 2.7 to
D:\Python27\
- Install the Mercurial Python package
- Installing the SCM-Manager
- Download the standalone package from http://www.scm-manager.org/download/
- Extract to
D:\scm-server\
- Open cmd as Administrator and navigate to
D:\scm-server\bin
, run "scm-server.bat install
" - Go to Services, and start the
scm-server
service
- Configuring repository settings for SCM-Manager
- Open the browser and navigate to
http://localhost:8080/
- The default admin username and password are both
scmadmin
- On the left hand side, find the Config panel, and click Repository Types, the Repository Config tab opens
- It's better unify the repository paths to
D:\SCM-Repositories\<Repository Type>
- In Mercurial Settings section, put the following configs:
- HG Binary:
D:\Python27\Scripts\hg.bat
- Python Binary:
D:\Python27\python.exe
- Python Module Search Path:
D:\Python27\
- Repository directory:
D:\SCM-Repositories\hg
- Encoding:
UTF-8
- Optimize .. (.pyo):
true
- HG Binary:
- Click the Save button
- Open the browser and navigate to
- Adding users to SCM-Manager
- Adding local users
- On the left hand side, find the Security panel, and click Users, the Users tab opens
- Click the Add button, the User Form tab at the bottom shows, put necessary info there and click OK
- Enabling Active Directory users
- On the left hand side, find the Config panel, and click Plugins, the Plugins tab opens
- Under the Authentication section, find scm-activedirectory-auth-plugin and click Install
- After the installation, restart the
scm-server
service - Now AD users are able to log in
- Adding local users
- Adding repositories to SCM-Manager
- On the left hand side, find the Main panel, and click Repositories, the Repositories tab opens
- Click the Add button, the Settings tab opens at the bottom
- Fill the Name field, you can use slash
/
to create a section, such asIT/Website
will create aWebsite
repository under theIT
section - The Type field for Hg is Mercurial
- The Contact, Description and Public fields are optional
- Click OK
- Configuring permissions for repositories
- On the Repositories tab, select a repository, 3 tabs are available at the bottom
- Select the Permissions tab
- Click the Add button to add a new row for a new user or group
- Click a cell to modify the existing settings
- Please note: SCM-Manager has a virtual group called
_authenticated
which means all authenticated users - When done, click OK