Friday February 07, 2003
Is it possible to lock files with CVS?
I don't think this is possible, but since a co-worker asked - I'm relaying the question to you, the experts. Using CVS, it is possible to "checkout" a file for editing, and to lock it on the CVS server, so no one else can check it in. If this feature exists, I'd love to use it. Also, if anyone knows how to hookup sending e-mails for commits on a barebones CVS install, enlighten me. SourceForge makes it easy using synchmail, but Google doesn't even know about this tool - must be a SF script.
Update: Anthony has given me some good tips in the comments of this post. I've had some success in getting e-mail notification setup, but I'm still having some issues. To configure it, I checked out CVSROOT, and edited the loginfo file, adding the following line:
^project /usr/bin/mailx -c $USER -s "[cvs-commit] %{sVv}" me@company.com
When I get in a file, I get:
Checking in build.properties; /export/home/cvsr/project/build.properties,v <-- build.properties new revision: 1.7; previous revision: 1.6 done 1.6... User unknown 1.7... User unknown build.properties... User unknown /export/home/mattra/dead.letter... Saved message in /export/home/mattra/dead.letter
I do receive the e-mail, but it's addressed to 1.6@cvsserver, 1.7@cvsserver, build.properties@cvsserver and me@company.com. I'm sure it's an easy fix, comments are appreciated.
Update 2: Our SysAdmin solved the e-mail issue with the following lines in loginfo:
^project /usr/bin/mailx -s '[cvs-commit] %{sVv}' me@company.com
^server_config /usr/bin/mailx -r me@company.com -s '[cvs-commit] %{sVv}' me@company.com
I'm no UNIX expert, so that's why I'm posting this here - that way I can use it the next time I need to set this up. Alternative approaches are welcome and encouraged!
Posted in Java
at Feb 07 2003, 07:23:56 AM MST
6 Comments
Search This Site
Recent Entries
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
Posted by Anthony Eden on February 07, 2003 at 08:41 AM MST #
Posted by Anthony Eden on February 07, 2003 at 08:45 AM MST #
Posted by Jano on February 07, 2003 at 10:31 AM MST #
Posted by Anthony Eden on February 08, 2003 at 01:51 PM MST #
Posted by Jano on February 09, 2003 at 09:18 AM MST #
Posted by 212.8.200.162 on November 21, 2007 at 08:52 AM MST #