[Top][All Lists]

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


From: Graeme . Vetterlein
Subject: Terminology
Date: Thu, 19 Apr 2001 10:31:19 +0100

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):

        " 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:


Now I've been trying to use 'commitinfo' to match things like:


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:


Where these are inside the 'repository' (as defined above):


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
# 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


The contents of, and the information contained in this email and any files 
with it are confidential and legally privileged, and are sent for the personal 
of the addressee(s). If you are not the intended addressee, any use, disclosure 
copying of this document is unauthorised.

Thank you

reply via email to

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