summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-17 14:20:33 +0000
committerpeter <peter@FreeBSD.org>1997-05-17 14:20:33 +0000
commit344c01408739a16b554783784ba35a84ccab4eb9 (patch)
tree24e0d23d4b6d15f7e80247047b815b30b7db7a1b /contrib/cvs/src
parenta3f9754a77738ed87f8ad9ba95fecfc3d59249a3 (diff)
downloadFreeBSD-src-344c01408739a16b554783784ba35a84ccab4eb9.zip
FreeBSD-src-344c01408739a16b554783784ba35a84ccab4eb9.tar.gz
Implement a -R option to cvs to turn on read-only repository mode.
When using a local repository that is only written to by CVSup - which I assume doesn't do the cvs locking protocol - this option might be a speedup since cvs will not create lock files.
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r--contrib/cvs/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/cvs/src/main.c b/contrib/cvs/src/main.c
index d0a7059..bf8701a 100644
--- a/contrib/cvs/src/main.c
+++ b/contrib/cvs/src/main.c
@@ -134,6 +134,7 @@ static const char *const usg[] =
" -w Make checked-out files read-write (default)\n",
" -l Turn History logging off\n",
" -n Do not execute anything that will change the disk\n",
+ " -R Assume repository is read-only, such as CDROM\n",
" -t Show trace of program execution -- Try with -n\n",
" -v CVS version and copyright\n",
" -b bindir Find RCS programs in 'bindir'\n",
@@ -435,7 +436,7 @@ main (argc, argv)
opterr = 1;
while ((c = getopt_long
- (argc, argv, "+Qqrwtnlvb:T:e:d:Hfz:s:x", long_options, &option_index))
+ (argc, argv, "+QqrwtnRlvb:T:e:d:Hfz:s:x", long_options, &option_index))
!= EOF)
{
switch (c)
@@ -463,6 +464,10 @@ main (argc, argv)
case 't':
trace = TRUE;
break;
+ case 'R':
+ readonlyfs = TRUE;
+ logoff = TRUE;
+ break;
case 'n':
noexec = TRUE;
case 'l': /* Fall through */
OpenPOWER on IntegriCloud