info-cvs
[Top][All Lists]
Advanced

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

RE: Diff tag and previous revision


From: Matthew Herrmann
Subject: RE: Diff tag and previous revision
Date: Thu, 15 May 2003 09:30:16 +1000

Eric,

The cleanest would be to make up a script which parsed CVS's command
line replaced the  @ character for example with the previous revision.

You would find out the required revision by taking the first -r found
of the form -r([^ @]+).

The algorithm is:

* Separate the version into numbers separated by dots
* If the whole number is 1.1., then stop.
* If the last number is > 1, then decrement it by one and return.
* Otherwise take away 2 dots and return.

if you want to get log output at a specific revision, just use
log log -r revision file.

And if you make one, please post it around for everyone's benefit!

Regards,

Matthew Herrmann
--------------------------------------
VB6/SQL/Java/CVS Consultancy
Far Edge Technology
http://www.faredge.com.au/

-----Original Message-----
From: Eric Fritz [mailto:address@hidden
Sent: Wednesday, May 14, 2003 1:01 AM
To: address@hidden
Subject: Diff tag and previous revision

Anyone have a simple way to diff a specific revision of a file with the
version that immediately preceeds it?  for example I'd like to try
something like:  "cvs diff -r mytag -r mytag-1 filename"  I know I can
figure out the version of the tag and then work it out but it would be
nice to automate it a bit.





reply via email to

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