There are few ways to make CVS repository read only. The most easiest so far I know of is create an empty writers file in CVSROOT folder.
Here is the initial content of CVSROOT:
# ls checkoutlist config,v Emptydir modules,v taginfo checkoutlist,v cvswrappers history notify taginfo,v commitinfo cvswrappers,v loginfo notify,v val-tags commitinfo,v editinfo loginfo,v rcsinfo verifymsg config editinfo,v modules rcsinfo,v verifymsg,v
Create an empty writers file:
# touch writers
# ls checkoutlist config,v Emptydir modules,v taginfo writers,v checkoutlist,v cvswrappers history notify taginfo,v commitinfo cvswrappers,v loginfo notify,v val-tags commitinfo,v editinfo loginfo,v rcsinfo verifymsg config editinfo,v modules rcsinfo,v verifymsg,v
An empty writers means nobody may write into repository, thus the repository is read only now.
No comments:
Post a Comment