Simple question really "So what is the repository?"
Now I thought I knew the answer to this:
(chapter 2 Version Management with CVS 1.10.6):
"...so the repository :local:/usr/local/cvsroot means ..."
"The repository is split into two parts $CVSROOT/CVSROOT contains
administrative files for cvs
the other directories contain the actual user-defined modules"
So my reading of this would be that the REPOSITORY means:
/usr/local/cvsroot
Now I've been trying to use 'commitinfo' to match things like:
.*\.properties dosomething.sh
.*\.java validate.sh
And it did not work. When all else fails read the source (if that fails read
the manual ;-)
This contains (repos.c)
/*
* Return a pointer to the repository name relative to CVSROOT from a
* possibly fully qualified repository
*/
Ahh! so that's why I can't match the regular expressions it's comparing the
'repository name'
not the full pathname of the file! (dumb mistake on my part)
But hang on isn't the 'repository name' /usr/local/cvsroot
that's not going to be any use? Tests reveal that I can match things like:
^config dosomething.sh
^javasrc validate.sh
Where these are inside the 'repository' (as defined above):
/usr/local/cvsroot/config
/usr/local/cvsroot/javasrc
So this seems to define (by it's actions) repository to mean:
'The various sub-directories under $CVSROOT'
At this point I reread the comment at the start of commitinfo:
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT. For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in
this
# file, the "DEFAULT" line is used, if it is specified.
... humm .. "the directory that the change is being committed to" OK that's
just what it
does ... "If the repository name does not match..." so the 'directory name'
is AKA 'repository name'?
Then again "cvs init" Creates a CVS repository if it does not exist...
OK I give up at this point "what is a repository?"
--
Only kings, presidents, editors, and people with tapeworms have the right
to use the editorial "we".
-- Mark Twain
Graeme
***********************************************************************************
The contents of, and the information contained in this email and any files transmitted
with it are confidential and legally privileged, and are sent for the personal
attention
of the addressee(s). If you are not the intended addressee, any use, disclosure or
copying of this document is unauthorised.
Thank you
NTL
***********************************************************************************
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs