Step 1. Installing Mercurial
Download the suitable version of Mercurial from http://mercurial.berkwood.com/ (for Mac OS X 10.4 download Mercurial 1.2.1). After installing type ‘hg’ in the Terminal to check if Mercurial was installed successfully. If Terminal says ‘Command not found’ then add the path to Mercurial installation (/usr/local/bin) to your ~/.profile file:
Comes with a handy Widget for Mac OS – you can monitor account activity across all of your projects from one simple interface. Free with 2 people, with 1 project for up to 200MB storage. I would like to add Deveo to the tools list as it supports Git, Subversion (SVN) and Mercurial (HG). The pricing is lower than most of the tools listed. TortoiseHg is a straightforward and multi-platform Mercurial front-end that comes with a workbench that helps you handle repositories and submit commits. With TortoiseHg’s help you can explore repositories in order to maintain and manage different versions of the contained files.
To check if directory is in your PATH now type the following in the Terminal:
The directory in question should appear in the list
Step 2. Configuring Mercurial
Before making commits it’s required to setup the username of Mercurial user. To do this open ~/.hgrc file for editing. If the file is not visible in Finder do the following in terminal to make hidden files visible or alternatively just edit the file in terminal:
To make hidden files visible in Finder:
Then add username to the [ui] section of .hgrc file:
Step 3. Setting up an initial repository
Go to your webroot folder (~/sites) and make sure it doesn’t already contain the folder with the same name of the repository you want to create (MediaAlbumWeb).
To set up a local repository you have to clone it from the existing one. If you don’t have such a repository available for cloning then you will have to create one.
If there is a latest Mercurial repository available to clone then go to the step 7.
Then in the Terminal do the following:
Using Finder copy files you want to store in the repository to the newly created MediaAlbumWebServer repository and run the following command in terminal:
Then make a commit to the repository:
Step 4. Installing Eclipse
Download and install Eclipse from http://eclipse.org/downloads/ or find it on Taopix DataShare/Eclipse.
For Mac OS X 10.4 download Mac Carbon version.
Step 5. Installing Mercurial plugin for Eclipse
First install Mac GnuPGP. Download the files http://sourceforge.net/projects/macgpg2/files/ or take it from Taopix DataShare/Eclipse folder.
Install the package from http://hge.javaforge.com/hgeclipse using Eclipse Help->Install New Software option.
For Mac OS X 10.4 install Mercurial Eclipse plugin instead from http://www.vectrace.com/eclipse-update/.
Mercurial Hg For Macbook
Select HgEclipse -> HgEclipse (uncheck Mercurial executable for Windows).
Step 6. Configure Eclipse plugin for Mercurial
Go to Eclipse Preferences -> Team -> Mercurial and specify the paths to hg and gpg2 files on your local machine.
Step 7. Setting up a local repository
To create a local repository open Eclipse and go to menu File -> Import -> Mercurial -> Clone repository using Mercurial and click Next button. Select the location of the repository to clone and enter your authentication details if applicable. In the clone destination enter the path where you want your local repository (MediaAlbumWeb) folder to be created. And then click Finish.
Then when you see the list of folders in your repository, mark what files and folders you would want to exclude from repository. For example, right click on ‘parsed’, ‘templates_c’ folders and config/mediaalbumweb.conf file and mark them as ignored.
Step 8. Installing Fogbugz plugin
Mercurial Hg For Mach
Install the plugin (Help -> Install New Software menu) from http://eclipsebugz.sourceforge.net.
Mercurial Hg For Mac Os
In order to work Fogbugz plugin needs a Fogbugz RSS feed. To get one go to Fogbugz Filters -> Manage saved filters saved filters and click on RSS icon. If you don’t have any saved filters create one and you will see an icon.
Hg Mercurial Mac Os X
As an example, feed:https://taopixdasha.fogbugz.com/default.asp?pg=pgRss&ixPerson=2&ixFilter=1