Alex's Hg Scripts Home
Brought to you by:
amclain
Initialize Mercurial repositories from a web browser.
This script was designed to run on a PHP-enabled web server that hosts Mercurial (Hg) repositories. It will initialize a new repository under the specified name and create the HGRC file with the description and contact information.
Extract the add.php script and open it in an editor (Dreamweaver, Vim, Notepad).
Locate the 'User Settings' section and change the path to the Mercurial repositories on the server's drive.
$hgpath = "/path/to/your/repos/"; //File path to Mercurial repositories.
Copy the file to a location on your web server. Make sure the server has permissions to run the script. Configure your web server to restrict access if necessary.