How to Close a CVS Module
I there a way to tell all users not to use a CVS module (i.e. project) anymore?
Something like an "end of production" or "moved to ..." flag?I mean other than deleting all the files in the module as my co-workers like t开发者_StackOverflowo do.
I put a cvs lock in the base directory of the module on the cvs server to prevent checkouts. touch "#cvs.lock"
.
Additionally, a system like ViewVC could allow developers to browse the contents of the old source code.
Make all of the files read-only. Or do you want to prevent reads too?
Edit: this command will recursively remove write permission from files in a directory tree, on a *nix system, assuming you're in the root of the directory tree you want to change.
find . -type f | xargs chmod gou-w
(I had previously posted a command in a comment below that was just plain wrong.)
精彩评论