[cvsnt] Re: postcommit file

John Peacock jpeacock at rowman.com
Thu Feb 13 20:14:34 GMT 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Tony Hoyle wrote:
> Postcommit doesn't have any input other than the repository name on the
> command line... it's the last things that's called before cvs finishes.

This is the piece of information I needed.  Actually, I altered my old 
update_websites.pl script to just log what was being passed.  And what is 
actually being passed is the full path to the directory updated, including the 
local CVSROOT path.

How hard would it be to make postcommit support some of the expansion variables 
that loginfo supports?  Specifically, I'd like %{} to display only the path 
relative to the repository root; it just make my script less cranky.  I have two 
different groups of files I am updating: shared include files in one path and 
then the site files in a completely different path.  Sometimes I want to just 
pass the relative directory using %{} and other times I want to hard-code the 
directory.  It would also be nice if %{CVSROOT} did what you would think it 
would do here (although to be honest I haven't checked that).

TIA

John



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook