bug-cvs
[Top][All Lists]
Advanced

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

Re: rdiff -s


From: Paul Edwards
Subject: Re: rdiff -s
Date: Wed, 23 Jul 2003 10:51:32 GMT

"Derek Robert Price" <derek@ximbiot.com> wrote in message 
news:mailman.58.1058281889.8231.bug-cvs@gnu.org...

>>Do you think the following change would be useful so that
>>awk can be used to get the word removed/added/changed
>>in a fixed position?
>
>>Or alternatively drop the word "is" from the removed/added
>>line?

> Without a specific sanity test, this change may not last very long
> anyhow.

I can add that.

> Regardless, I don't think I want to make consistent line
> length part of our design goals.

Actually, my idea of "summary" ("-s") is a lot different from
CVS's idea.  My idea of summary is not written in English at
all, it is a terse format suitable for easy processing by other
utilities.

E.g.

src/xxx/fred.c C 1.1.2.3 1.1.2.4
src/xxx/mary.c D 1.1.2.6
src/xxx/abc.c A 1.1.2.9

But if English is used, fixed positions would be reasonable,
albeit still bizarre.

But one level down the chain from that would be consistent
number of spaces so that awk (with space separation) will
find the token at the same spot.

But this is a long way from that:

> Why not just regex for each pattern or
> something predictably more consistent like \d\.[\d.]*\d?

and requires a much higher level of sophistication or tool in
order to convert CVS's summary into... a summary!

BFN.  Paul.




reply via email to

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