0

I followed the instructions here to get a Mercurial server hosted in IIS7:

http://www.firegarden.com/software/hosting-mercurial-repo-iis7-windows-server-2008r2-x64-python-isapi-cgi

It works great, clean urls and notifications get sent and are formatted to according to the template:

 [notify]
 sources = serve push pull bundle
 template = 
    details:   {baseurl}/rev/{node|short}

Ends up looking like this:

 -----Original Message-----
 From: mercurial@mydomain.net
 Sent: Thursday, January 17, 2013 10:42 PM
 To: Me
 Subject: D:/hg/Repositories/test: Again

 details:   http://hg.mydomain.net/test/rev/561563d3847e

But notice that the subject has the windows drive letter in it, rather than the url http://hg.mydomain.net/test/

Is there a way to fix it so that it shows the URL rather than the drive letter? Or maybe not the url, but just show the repository?

slolife
  • 19,520
  • 20
  • 78
  • 121

2 Answers2

1

The property called strip of the Notify extension will help you do what you want. You can strip off the leading root for the repository in the subject line.

smooth reggae
  • 2,189
  • 13
  • 14
  • That seems to be the only option at this point. Would like to have the URL instead of just stripping a certain number of roots. – slolife Jan 18 '13 at 23:40
0

Maybe you should define Subject section in your template config? Please refer to this chapter for more information.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • I followed that example and it does not work. Adding the "Subject: ..." text just puts that text in the email body, but doesn't adjust the subject OF the email. – slolife Jan 18 '13 at 23:39