开发者

How to Close a CVS Module

开发者 https://www.devze.com 2023-01-09 11:59 出处:网络
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 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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消