Date: Fri, 18 Jun 1999 10:06:09 +0800 From: David_May@allsolutions.com.au To: freebsd-bugs@freebsd.org Subject: co does not lock third verion if two versions already locked by same user. Message-ID: <48256794.000A8122.00@ASPerth1.allsolutions.com.au>
next in thread | raw e-mail | index | archive | help
I am forwarding this to freebsd-bugs as it is also FreeBSD related (well at least I mentioned FreeBSD) and I am unsure if the rcs-bugs mailing list is active because I have got no acknowledgement since I originally posted to it. ---------------------- Forwarded by David May/All Solutions on 18/06/99 10:01 --------------------------- From: David May on 09/06/99 12:18 To: rcs-bugs@cs.purdue.edu Subject: co does not lock third verion if two versions already locked by same user. I believe we have found a serious bug (or an undocumented feature in RCS 5.7). I have just installed RCS verion 5.7 on our DEC Alpha and IBM RS6000 machines. Installed from source code downloaded from GNU master site, compiled with vendor supplied C compilers under DEC OSF1 V3.2 and IBM AIX 4.1. I also reproduced the same problem under FreeBSD 2.2.8 using the supplied RCS version 5.7 binaries from Walnut Creek CD-ROM. We find the following steps reproduce the problem on all the specified environments: 1. Create three versions of file test.c: versions 1.1, 2.1 and 3.1. 2. A user checks out two of of the versions with locks using the following commands: co -l1 test.c co -l2 test.c Result: RCS successfully checks out and locks versions 1.1 and 2.1 of file test.c. 3. The same user then attempts to check out and lock version 3.1 with command co -l3 test.c Here is the result: (david@rs6k)$co -l3 test.c test.c,v --> test.c co: test.c,v: multiple revisions locked by david; please specify one revision 3.1 (locked) writable test.c exists; remove it? [ny](n): y co: test.c,v: warning: You now have 3 locks. done (david@rs6k)$rlog test.c RCS file: test.c,v Working file: test.c head: 3.1 branch: locks: strict david: 2.1 david: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: Test. ---------------------------- revision 3.1 date: 1999/06/09 08:38:05; author: david; state: Exp; lines: +0 -0 Test. ---------------------------- revision 2.1 locked by: david; date: 1999/06/09 08:37:47; author: david; state: Exp; lines: +0 -0 Test. ---------------------------- revision 1.1 locked by: david; date: 1999/06/09 08:36:53; author: david; state: Exp; Initial revision =========================================================================== == 4. I believe that the co command should have allowed the user to check out version 3.1 of file test.c - this was the behaviour observed with our previous RCS software (version and source unknown - maybe version 5.5). Notes: 1. The error does not occur if a different user checks out the file (with a lock). 2. The user can lock the file with command "rcs -l3 test.c" and then check out the file with command "co -r3 test.c". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48256794.000A8122.00>