Discussion:
How to configure the mail notification on commit
kandula kiranmayi
2009-02-23 06:25:45 UTC
Permalink
Hi,

I want to send a mail to my team whenever there is a commit to the cvs code.
It was done. But i wish to include the following details in the body of the
mail.

1. version numbers of the modified files,
2. difference between the modified files How can i do that.

difference == lines of code that have added/changed.

( one thing is ... if i print rdiff command output to the body of the mail,
will it help me.. how can i print that)

Seeking an immediate help.

Thanks in Advance,


--
K.R.Kiranmayi,
Oracle India Pvt. Ltd,
Hyderabad.
Yaron Yogev
2009-02-23 08:39:52 UTC
Permalink
Hi,

We do exactly what you describe. In CVS 1.12.13, we use the loginfo
file to perform post-commit operations, one of which is notifying
related users (we also have an interesting mechanism for marking who's
to be notified, but that's another issue).

If you look at the loginfo file structure, you'll see that one of the
fomrat string it provides is %{sVv}, which gives you name of file, old
version and new version.

We prepare a text output, including the rdiff output, and redirect it
into "sendmail -t".
You can also consider graphical diff'ing, using HTML, and code
highlighting.

HTH
Yaron Yogev
Post by kandula kiranmayi
Hi,
I want to send a mail to my team whenever there is a commit to the cvs code.
It was done. But i wish to include the following details in the body of the
mail.
1. version numbers of the modified files,
2. difference between the modified files  How can i do that.
difference == lines of code that have added/changed.
( one thing is ...  if i print rdiff command output to the body of the mail,
will it help me.. how can i print that)
Seeking an immediate help.
                                                  Thanks in Advance,
 --
K.R.Kiranmayi,
Oracle India Pvt. Ltd,
Hyderabad.
Loading...