info-cvs
[Top][All Lists]
Advanced

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

RE: Is there any way to tell CVS update to show file revisions


From: Res Pons
Subject: RE: Is there any way to tell CVS update to show file revisions
Date: Tue, 26 Aug 2008 14:55:17 -0700

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: address@hidden
> To: address@hidden
> CC: address@hidden
> 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. Check It Out!

reply via email to

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