FogBugz 7.0 Online Help

Setting up Mercurial

Getting Mercurial to transmit changes to FogBugz

To setup Mercurial-FogBugz integration, start by logging into FogBugz as an administrator and going to Admin | Source Control. Click Create New Repository. In the resulting dialog, select Mercurial as the type and click Next.

In the resulting dialog, download the python script and save the file to your Mercurial hgext directory.

Note: If your repository uses TortoiseHg, the hgext directory is located in the Library.zip file in the TortoiseHg directory.

To enable the script, edit the .hg/hgrc file in your repository by adding the following lines:

[extensions]
hgext.fogbugz=

[hooks]
incoming=python:hgext.fogbugz.hook

You will then need to configure the FogBugz extension so that it knows where to locate your FogBugz install. Simply add the following lines, edited appropriately, into your .hg/hgrc file:

[fogbugz]
host=http://full/path/to/fogbugz

Finally, you should set your baseurl to make sure that the appropriate repository location is passed along to FogBugz.

[web]
baseurl=http://url/of/your/repo

Getting FogBugz to Provide Hyperlinks to Mercurial

Assuming you supplied the right value for baseurl in your hgrc file, FogBugz will automatically link to logs and diffs in Mercurial.