bug-cvs
[Top][All Lists]
Advanced

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

Re: CVS Log unexpected results


From: Larry Jones
Subject: Re: CVS Log unexpected results
Date: Sun, 23 Apr 2006 19:47:12 -0400 (EDT)

jim.herr@thomson.com writes:
>  
> cvs -q diff --brief -r <branch> -r <last-tag> project returns a list of
> files that have been modified in the branch since tag 'last-tag'.

Yes, but you're actually asking the question backwards -- you're asking
for the differences from the tip of the branch to the last tag rather
than from the last tag to the tip of the branch.  Since you're using
--brief it doesn't make any difference, but it would otherwise.

> So far, so good.  I then wanted to use 'cvs log' to show me the commit
> comments for revisions that were newer in the branch.
>  
> I tried:
>  
> cvs -q log -S -r<last-tag>:: filename 
>
> where filename was one of the filenames returned by the 'cvs diff'.  The
> problem occurs when the updated file is the first revision on a branch.
> In that case, cvs diff returns nothing.

Right, because the last tag is not on the branch.  You should be able to
skip the diff and get what you want with just log:

        cvs -q log -S -r<last-tag>::<branch>

-Larry Jones

It's clear I'll never have a career in sports until I learn
to suppress my survival instinct. -- Calvin




reply via email to

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