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.
This commit is contained in:
Peter Wemm 1997-05-17 14:20:33 +00:00
parent c5648cfb9a
commit eac9eb60ad

View File

@ -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 */