Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site psivax.UUCP Path: utzoo!utcs!lsuc!pesnta!hplabs!sdcrdcf!psivax!friesen From: friesen@psivax.UUCP (Stanley Friesen) Newsgroups: net.sources.bugs Subject: Fix of sccstorcs failure on 'rmdel'd sccs files Message-ID: <329@psivax.UUCP> Date: Thu, 14-Feb-85 14:23:26 EST Article-I.D.: psivax.329 Posted: Thu Feb 14 14:23:26 1985 Date-Received: Sun, 17-Feb-85 06:46:59 EST Reply-To: friesen@psivax.UUCP (Stanley Friesen) Organization: Pacesetter Systems Inc., Sylmar, CA Lines: 37 The distributed version of "sccstorcs" bombs on sccs files with rmdel'd revisions, the following simple modification will take care of *most* such cases. ------------------------------CUT HERE-------------------------------- *** sccstorcs.c.old Thu Feb 14 11:16:28 1985 --- sccstorcs.c Thu Feb 14 11:15:42 1985 *************** *** 283,288 for (; delta; delta = delta -> next) { /* * Get the SCCS file. */ sprintf (command, "%s -p -r%s %s > %s", --- 283,296 ----- for (; delta; delta = delta -> next) { /* + * Code to handle (some) rmdel situations + * If a series of "deltas" in the sccs file have the same revision + * take ONLY the last one + */ + while(delta->next && !strcmp(delta->next->revision, delta->revision)) + delta = delta->next; + + /* * Get the SCCS file. */ sprintf (command, "%s -p -r%s %s > %s", -- Sarima (Stanley Friesen) {trwrb|allegra|cbosgd|hplabs|ihnp4|aero!uscvax!akgua}!sdcrdcf!psivax!friesen or quad1!psivax!friesen