Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lsuc!eci386!ecicrl!clewis From: clewis@ferret.ocunix.on.ca (Chris Lewis) Newsgroups: comp.unix.programmer Subject: Re: Does SCCS allow you to "un-delta" a version??? Message-ID: <2075@ecicrl.ocunix.on.ca> Date: 27 May 91 21:23:20 GMT References: <2285@twg.bc.ca> Organization: Elegant Communications Inc., Ottawa, Canada Lines: 30 In article <2285@twg.bc.ca> bill@twg.bc.ca (Bill Irwin) writes: >I am just getting acquainted with the SCCS system commands and >have found that sometimes you can think a modification is >complete and delta it, only to discover later that there are >still some bugs in it. Is it possible to Get the most current >version back, make some changes, then delta the same version >number again? Do a "get -k s." to get the file back out in edittable form (writeable, and keywords unexpanded), and then do a "rmdel -rA.B s.", where "A.B" was what the "get -k" reported the revision to be. This will remove the delta you just applied. Then, to get the SCCS file ready for the delta after you've fixed it, do a: get -e -p s. > /dev/null (which gets out the previous version for editting, but throws it away) Then you can change and delta it again - it will end up with the same revision level as the original delta that you buggered up. If the mistakes were made in the lines that I had altered in the delta, I just chmod 644 the s., edit it, then "admin -z s." (to fix the checksum) and then chmod 444 s.. This is dangerous (of course), and should only be done on the lines that were *added* by the delta that was buggered up, otherwise you lose historical tracking and/or SCCS header validity. -- Chris Lewis, Phone: (613) 832-0541, Domain: clewis@ferret.ocunix.on.ca UUCP: ...!cunews!latour!ecicrl!clewis; Ferret Mailing List: ferret-request@eci386; Psroff (not Adobe Transcript) enquiries: psroff-request@eci386 or Canada 416-832-0541. Psroff 3.0 in c.s.u soon!