Merge from vendor branch TNF:
[pkgsrcv2.git] / devel / cvs / patches / patch-ap
1 $NetBSD: patch-ap,v 1.1 1999/04/20 15:01:11 mycroft Exp $
2
3 --- src/main.c.orig     Wed Aug 12 18:39:33 1998
4 +++ src/main.c  Tue Apr 20 10:20:12 1999
5 @@ -40,6 +40,7 @@
6  int quiet = 0;
7  int trace = 0;
8  int noexec = 0;
9 +int nolock = 0;
10  int logoff = 0;
11  
12  /* Set if we should be writing CVSADM directories at top level.  At
13 @@ -217,6 +218,7 @@
14      "    -w           Make checked-out files read-write (default).\n",
15      "    -l           Turn history logging off.\n",
16      "    -n           Do not execute anything that will change the disk.\n",
17 +    "    -u           Don't create locks (implies -l).\n",
18      "    -t           Show trace of program execution -- try with -n.\n",
19      "    -v           CVS version and copyright.\n",
20      "    -b bindir    Find RCS programs in 'bindir'.\n",
21 @@ -485,7 +487,7 @@
22      opterr = 1;
23  
24      while ((c = getopt_long
25 -            (argc, argv, "+Qqrwtnlvb:T:e:d:Hfz:s:xa", long_options, &option_index))
26 +            (argc, argv, "+Qqrwtnulvb:T:e:d:Hfz:s:xa", long_options, &option_index))
27             != EOF)
28      {
29         switch (c)
30 @@ -523,6 +525,8 @@
31                 break;
32             case 'n':
33                 noexec = 1;
34 +           case 'u':                   /* Fall through */
35 +               nolock = 1;
36             case 'l':                   /* Fall through */
37                 logoff = 1;
38                 break;
39 @@ -802,7 +806,7 @@
40              * BUT, only if the history file exists.
41              */
42  
43 -           if (!client_active)
44 +           if (!client_active && !nolock)
45             {
46                 char *path;
47                 int save_errno;