Sponsored Content
Top Forums Shell Programming and Scripting Making post down hook script for svn regarding sending emails after an file is committed in svn Post 302943866 by sunsun06060606 on Wednesday 13th of May 2015 12:18:36 PM
Old 05-13-2015
Wrench Making post down hook script for svn regarding sending emails after an file is committed in svn

Hi Folks ,

I am asking this question but i apologise please if this is not the correct forum ,

I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if a user commit any piece of code in other words lets say if a user do changes in a file by modifying or by removing any text then when he commits that file in svn repository that script would be executed and it will be sending a mail to an email id mentioned in script and in that mail body there will be text which was removed by user shown in red color and the text that was added by user shown in green color

so the things that shell script consisits of is

email id of reciever
and from where the mail is sent

folks please advise how to develop such script as an example i have seen the ruby script to achieve the same sharing the url for that also...

Code:
http://gurge.com/2006/09/10/subversion-post-commit-email-hook-in-ruby/

Code:
https://mikewest.org/2006/06/subversion-post-commit-hooks-101

but i want to develop the shell script to achieve the same.SmilieSmilie

Folks any early help and advise would be highly appreciated

Last edited by sunsun06060606; 05-14-2015 at 03:53 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

svn diff failed (no such file or directory)

I'm on ubuntu fiesty using svn as version control and gvim as my IDE. i like to review changes to files before checking them in. at some point in my life i used " svn diff {path}/{filename} " this now returns Index: {path}/{file}... (5 Replies)
Discussion started by: manic
5 Replies

2. AIX

AIX 6.1 SVN

Can anybody provide me with useful links how to install SVN on AIX 6.1? (10 Replies)
Discussion started by: wwwzviadi
10 Replies

3. UNIX for Advanced & Expert Users

extracting the component names from SVN changes xml file

Hi All, The following is the sample xml which is generated by a tool called HUDSON when ever change occurs in SVN(Sub version namespace). In the given XML , path/paths tags ll be vary depends on no.of changes. now , my requirement is, need a script which can extract the payment and... (1 Reply)
Discussion started by: geervani
1 Replies

4. Ubuntu

svn keyrings

Hello, I have a svn account and can use it easly trought Web browser inserting username and passwd. But I get problems when I wanna do the same via shell, here the output that I get: svn --username myusername co https://address/repo/ . Password for '(null)' GNOME keyring: svn: OPTIONS... (0 Replies)
Discussion started by: Dedalus
0 Replies

5. UNIX for Dummies Questions & Answers

svn question

Hello, This one really stumps me. I checked out a repo to a subdirectory. I created a simple post-commit hook that updates the webserver. A. When I update with the command line everything is fine. B. When I use a GUI program to commit, I get this message in the log: Host key verification... (3 Replies)
Discussion started by: mike628
3 Replies

6. Shell Programming and Scripting

svn check out

If I am transfering a folder from svn location to my unix server with below command, it is working – svn co svn+ssh://bcvxsvxxnp01.corp.ocwen.com/svn/repos/repos/REALResolution/CalcEngine/CalcEngine\ QA/1852011_CalcEngine_v5.1 But when I do below thing – ... (0 Replies)
Discussion started by: thearpit
0 Replies

7. Shell Programming and Scripting

gets all files details committed to svn by a particular user [or all users] since a particular date

Here is a shell for printing committed person's: 1. Revision number 2. Name 3. Date of commit 4. Files committed. 5. committing comment 6. Date I just made for my usage. May be helpful for you too. Do as follows. create a file $ vi svn_get_user_committed_files_details.sh press i... (3 Replies)
Discussion started by: linuxadmin
3 Replies

8. Solaris

How to integrate SVN client to SVN server repository.

Hi, I am new to SVN configuration on Solaris 10.I have installed SVN client version 1.7. bash-3.00# ./svn --version svn, version 1.7.4 (r1295709) compiled Mar 2 2012, 12:59:36 Here my requirement is how to integrate svn client to One of the SVN server repository. My repository... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

9. Shell Programming and Scripting

UNIX command/script svn log to get just the files information

Just need the directory name and files changes information in svn log This is my svn log verbose: svn log -v //test/svn/Demo/branches/HelloWorld/Batch --limit 2 ------------------------------------------------------------------------ r133 | testuser1 | 2013-04-02 18:22:28 -0400 (Tue, 02 Apr... (22 Replies)
Discussion started by: iaav
22 Replies

10. UNIX for Dummies Questions & Answers

Svn update

dear all after a wile that i was able to update my model with ''svn update'', now i can not update my model with that command:mad:. my model is COAWST please see the following error: $ svn update svn: OPTIONS of 'https://coawstmodel.sourcerepo.com/coawstmodel/COAWST': SSL handshake failed:... (1 Reply)
Discussion started by: komijani
1 Replies
SVN::Hooks::CheckMimeTypes(3pm) 			User Contributed Perl Documentation			   SVN::Hooks::CheckMimeTypes(3pm)

NAME
SVN::Hooks::CheckMimeTypes - Require the svn:mime-type property. VERSION
version 1.19 SYNOPSIS
This SVN::Hooks plugin checks if the files added to the repository have the svn:mime-type property set. Moreover, for text files, it checks if the properties svn:eol-style and svn:keywords are also set. The plugin was based on the check-mime-type.pl <http://svn.digium.com/view/repotools/check-mime-type.pl> script. It's active in the "pre-commit" hook. It's configured by the following directive. CHECK_MIMETYPES([MESSAGE]) This directive enables the checking, causing the commit to abort if it doesn't comply. The MESSAGE argument is an optional help message shown to the user in case the commit fails. Note that by default the plugin already inserts a rather verbose help message in case of errors. CHECK_MIMETYPES("Use TortoiseSVN -> Properties menu option to set properties."); AUTHOR
Gustavo L. de M. Chaves <gnustavo@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by CPqD. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-24 SVN::Hooks::CheckMimeTypes(3pm)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy