info-cvs
[Top][All Lists]
Advanced

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

Re: Diff Info


From: Todd Denniston
Subject: Re: Diff Info
Date: Fri, 25 Mar 2005 13:21:54 -0500

"SUBRAMANIAN, SARAVANAN (SBCSI)" wrote:
> 
> Hi All
> 
> I need to find out how many are files are added, modified and deleted
> from one version tag to another tag.
> Please help me out.
> 
> Thanks
> SARAVANAN SUBRMANIAN
> SCM
> Centrex Mate

In the future, Please chop out any digest matterial that is not related to
the new question.

Try the following script.

echo -n "new files";
cvs diff -N --brief -rTAG1 -rTAG2 2>/dev/null| \
grep differ|grep "s \/dev\/null"|wc -l;
echo -n "removed files ";
cvs diff -N --brief -rTAG1 -rTAG2 2>/dev/null| \
grep differ|grep "d \/dev\/null"|wc -l;
echo  -n "changed files"; 
cvs diff -N --brief -rTAG1 -rTAG2 2>/dev/null| \
grep differ|grep -v "\/dev\/null"|wc -l

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

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