[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvs export after commit

From: kailash vyas
Subject: cvs export after commit
Date: Wed, 20 Jul 2005 10:48:41 +0100


everytime i commit the file, a export is run through loginfo file in
CVSROOT directory on server. I have specified this in the loginfo file
for testing

DEFAULT (cd /usr/wwwroot/htdocs/cvstesting;cvs export -r HEAD

so everytime i run it test.php is exported to the htdocs/cvstesting
but even after the commit is over the export gets hanged because of
the #cvslock file in the directory on the server. but the problem is
it creates this lock everytime i commit the file. is there a
workaround where i can export file after commit through loginfo

loginfo file

# The "loginfo" file controls where "cvs commit" log information
# is sent.  The first entry on a line is a regular expression which must match
# the directory that the change is being made to, relative to the
# $CVSROOT.  If a match is found, then the remainder of the line is a filter
# program that should expect log information on its standard input.
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
# If the name ALL appears as a regular expression it is always used
# in addition to the first matching regex or DEFAULT.
# You may specify a format string as part of the
# filter.  The string is composed of a `%' followed
# by a single format character, or followed by a set of format
# characters surrounded by `{' and `}' as separators.  The format
# characters are:
#   s = file name
#   V = old version number (pre-checkin)
#   v = new version number (post-checkin)
# For example:
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
# or
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
#DEFAULT /usr/local/cvs-repository/CVSROOT/
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
#DEFAULT (/usr/local/cvs-repository/CVSROOT/ %{sVv})
DEFAULT (cd /usr/wwwroot/htdocs/cvstesting;cvs export -r HEAD

best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]