Skip to content

Using Hosted Mercurial Version Control on / Adding Commit Emails

Updated: at 02:12 PM


A Little History

So, this may sound simple, but I seem to be having one of those days where things just don’t seem to go as I plan.  First, a little background.  I’m planning on releasing an open source project on CodePlex in the not to distant future and one of the choices for version control is Mercurial (hg for short).  Most of my projects have been in subversion, but it seems all the smart people I know have been moving to Git or Mercurial.  Since CodePlex does not support Git, Mercurial it is.  I like having a company I pay host my source control so if I have an issue, I have someone to contact.  I chose for this. They seem very well known with lots of positive vibes on the net.


Adding a Commit Email

Every time someone commits an update to (that is where our primary repository is), I want to get an email that says a commit was made and I want to see the differences.  To do this, you need to chose your repository (mine is called pkellner99 / ConnectionRoadWeb) as follows:


Then, click on the repository you want. From there, click on the admin tab (as pointed at by the red arrow), then go to the “Services” item in the Additional options/settings window (see the other red arrow).


Once you’ve done that, you will see this window:


change the dropdown to say “Email Diff” and press the Add Service button as follows.


You’ll get this window:


You’ll put your email int he box and press “Save Settings”.  I’m putting in the textbox because I don’t really want to tell you my super secret email address (though I’m not afraid to publish my phone number on the contact page so go figure).

You’ll be then rewarded with:


You may be thinking, that is the same as the above (that is what I was thinking), but then if you go back to the top box, change POST to EMAIL Diff, press Add service again, you will get:



Which tells you that you are doing good!  Repeat over and over for lots of different services to add.



I have to say it was not obvious to me how to do this, but bitbucket support was awesome!  I would email them, they would email me (and so on and so forth) with practically no lag time that eventually led to me figuring this out. 

Thanks for the great support bitbucket!

Check out the ORM (Object Relational Mapper) PRISMA. The database access method I use in all my projects