Using Gmail with hg’s Patchbomb Extension

I recently created a patch for the Mercurial Project and in order to submit the patch I had to use hg’s patchbomb extension. Unfortuantely that requires me to have SMTP on my system. I didn’t have that so either I needed to install SMTP or figure out a way to use Gmail. I decided to use Gmail but it took me a while to get it working because I couldn’t really find much help on the web. Since nobody seems to have explained how to do this properly I decided I’ll just put out a simple guide. Here it is:

  1. Open up your repo’s .hgrc file
  2. Add the following:

                                          [extensions]
                                          hgext.patchbomb =

                                          [email]
                                          from=[your_name] [<your_email>]
                                          method=smtp

                                          [smtp]
                                          host=smtp.gmail.com
                                          port=587
                                          username=[gmail_email_address]
                                          password=[gmail_password]
                                          tls=True

This entry was posted in Open Source and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>