Date: Mon, 02 Sep 1996 07:44:07 +0200 From: Poul-Henning Kamp <phk@critter.tfs.com> To: "Philippe Charnier" <charnier@xp11.frmug.org> Cc: hackers@freebsd.org Subject: Re: ctm: moving file to Attic Message-ID: <2111.841643047@critter.tfs.com> In-Reply-To: Your message of "Sat, 31 Aug 1996 00:04:34 %2B0200." <199608302204.AAA18261@xp11.frmug.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199608302204.AAA18261@xp11.frmug.org>, "Philippe Charnier" writes: >Hello, > >For now, when a file go to the Attic, something like this is run and >the content of the entire file is sent via ctm. (Note that the content >of the file differs a little when going to the Attic): > FR src/usr.bin/locate/locate/updatedb.csh,v > DM src/usr.bin/locate/locate/Attic > FM src/usr.bin/locate/locate/Attic/updatedb.csh,v Well, you might as well make the more general solution. Run through the two trees. Emit Edits for changed files. Emit Mkdirs for new directories. Collect list of new & removed files, removed directories. For all new files in list Try all files in the new & removed lists with the same basename select smallest delta produced if edit smaller than full file emit "Edit with template" else emit "make new file" For all files in the remove list emit "Remove" For all dirs in the remove list emit "Remove" Look at the src/usr.sbin/ctm/mkctm/mkctm.c program, and send me patches :-) -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2111.841643047>