Thank you Todd, this is great and what I needed.  I forgot to mention that 
we're a Windows shop and use WinCVS and CVSNT mostly, so when I do an update or 
pull based on a label or tag, I get a very crude list of files with no details 
and the detail is in WinCVS gui. So I downloaded the free standing cvs.exe and 
gnu command tools and I may be able to write use your scripts to get what I 
need. Thanks again> Date: Tue, 26 Aug 2008 13:55:00 -0400> From: [EMAIL 
PROTECTED]> To: [EMAIL PROTECTED]> CC: [EMAIL PROTECTED]> Subject: Re: Is there 
any way to tell CVS update to show file revisions> > Res Pons wrote, On 
08/25/2008 08:45 PM:> > Hi> > > > I would like to be able to create a list of 
all the files > > in my project with their revision numbers to the right of 
them.> > cvs status just throws up too much information,> > all I would like is 
as follows:> > > > fileone 1.4> > filetwo 1.70> > > > Thanks> > > > Rez> > And 
of course the first question is... Why would you want to record that > 
information? because revision numbers are for CVS's use, tags are for human > 
and build system use.> > but to answer the question as asked...> > > > Use the 
Unix[1].> > cvs status | \> grep "Repository revision:" | \> awk '{print $4 " " 
$3}' > /tmp/working> > > cat /tmp/working | \> while read -t 1 input; \> do \> 
VERSION=`echo $input|awk '{print $2'}` ; \> FNAME=`echo $input|awk '{print $1'} 
| \> xargs -iXXX basename XXX ,v`; \> echo "$FNAME $VERSION"; \> done > 
/tmp/ResPons.txt> > [1] > 
http://en.wikipedia.org/wiki/Unix_philosophy#McIlroy:_A_Quarter_Century_of_Unix>
 
http://en.wikipedia.org/wiki/Unix_philosophy#Raymond:_The_Art_of_Unix_Programming>
 > -- > Todd Denniston> Crane Division, Naval Surface Warfare Center (NSWC 
Crane)> Harnessing the Power of Technology for the Warfighter
_________________________________________________________________
See what people are saying about Windows Live.  Check out featured posts.
http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008

Reply via email to