Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-30-2006, 09:51 AM   #1
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
cvs diff the most current and second last current version

Is there a way to do a cvs diff between the most current and second last current version of a file without specifying a version number?

i.e. Assume the most current version is N.
How to do a diff between N and (N - 1)?

This does not work:
# cvs diff -r LATEST file
# cvs [diff aborted]: no such tag LATEST
Old 03-30-2006, 01:02 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Not as far as I know. The keyword HEAD is used to mean the latest version of a file because it refers to the main branch and when a branch is checked out by branch name, you get the last version on the branch. But there isn't a way to refer to versions relatively.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to know the current SuSE version? hongxing SUSE / openSUSE 2 10-12-2005 03:02 AM
current version gontarski Debian 5 03-16-2005 07:47 AM
current Slack-Current giving troubles? r_jensen11 Slackware 5 02-02-2004 05:08 PM
How do you tell the current version of your kernel? Riley Linux - General 2 03-30-2003 07:33 PM
Can't mount current version Rod Linux - General 2 11-08-2000 01:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration