[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trimming old diffs to save space

From: Larry Jones
Subject: Re: Trimming old diffs to save space
Date: Wed, 13 Aug 2003 16:16:22 -0400 (EDT)

Ed Avis writes:
> I am writing a tool to strip out old revisions from an RCS file while
> leaving the log messages.  This is purely to save disk space.

I'd suggest simply revising the log message of the first revision you're
leaving intact to include the previous revisions' log messages and then
outdating the previous revisions.  (Use the -m and -o options to cvs
admin or rcs.)

> As far as I know there is no standard
> description of the RCS file format, only the implementations of tools
> that use it.

RCS includes an ``rcsfile'' man page that describes the format.  For


> My first try was to make the diff empty, as
> text
> @
> @

That's not an empty diff, that's a diff containing a single newline
(which isn't valid).  An empty diff (which is valid) would be:


-Larry Jones

It works on the same principle as electroshock therapy. -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]