|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
about sending mercurial commit notification email script on windows...Hi, There is something you could possibly help me with. Does
anyone have a sample windows script to send notification email upon commit in
mercurial? I do have this working on OS X and Linux, and I’ve
tried to make it work for windows by using sendEmail from http://caspian.dotconf.net/menu/Software/SendEmail/#installation,
unfortunately, I’ve been unable to find out how to make the mercurial
commands work from the batch script. The code: REM #These works on OS X and Linux: REM #!/bin/bash REM #SUBJECT=$(hg log -r $HG_NODE --template
'{rev}:{node|short} -- {desc|firstline}') REM #hg log -vpr $HG_NODE | mail -s "commit:
$SUBJECT" test@... REM REM #These does not work in Windows, it calls the sendEmail
but the mercurial commands are not recognized: set subject = hg log -r $HG_NODE --template
'{rev}:{node|short} -- {desc|firstline}' set message = hg log -vpr $HG_NODE "C:\Program Files\sendEmail\sendEmail" -f test@...
-t test@... -s smtp.test.com:25 -u "commit: %subject%" -m
"$message$” I will appreciate, any comments or suggestions. Thank you very
much in advance. Best
Regards, _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: about sending mercurial commit notification email script on windows..."Klasky, Hilda B." <klaskyhb@...> writes:
> Hi, > > There is something you could possibly help me with. Does anyone have a > sample windows script to send notification email upon commit in > mercurial? > > I do have this working on OS X and Linux You don't write how exactly you got it working on those platforms. Did you use the standard notify extension? http://mercurial.selenic.com/wiki/NotifyExtension It is using the standard Python libraries for sending mails, so I would expect it to be cross platform. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: about sending mercurial commit notification email script on windows...Hi Martin,
Thank you very much for your email. Yes, I've enabled the notify extension on the three platforms. But, on OSX and Linux calls the mail command, nor a python email library, unless I am missing something (?) this does not seem to work on windows and looks like we need to write our own. Any suggestions, will be greatly appreciated. On 11/4/09 11:13 AM, "Martin Geisler" <mg@...> wrote: "Klasky, B." <klaskyhb@...> writes: > Hi, > > There is something you could possibly help me with. Does anyone have a > sample windows script to send notification email upon commit in > mercurial? > > I do have this working on OS X and Linux You don't write how exactly you got it working on those platforms. Did you use the standard notify extension? http://mercurial.selenic.com/wiki/NotifyExtension It is using the standard Python libraries for sending mails, so I would expect it to be cross platform. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: about sending mercurial commit notification email script on windows..."Klasky, Hilda B." <klaskyhb@...> writes:
Hi Hilda > Thank you very much for your email. > Yes, I've enabled the notify extension on the three platforms. Okay, good :-) > But, on OSX and Linux calls the mail command, nor a python email > library, unless I am missing something (?) this does not seem to work > on windows and looks like we need to write our own. Mercurial is not calling mail (or sendmail) by default. See the method setting here: http://www.selenic.com/mercurial/hgrc.5.html#email and the [smtp] section: http://www.selenic.com/mercurial/hgrc.5.html#smtp In other words, Mercurial can use your normal SMTP server just like any other program. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
| Free embeddable forum powered by Nabble | Forum Help |