info-cvs
[Top][All Lists]
Advanced

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

Re: How do I get a barebone stripped off list of files changed between2


From: S I
Subject: Re: How do I get a barebone stripped off list of files changed between2 builds?
Date: Tue, 12 Jul 2005 14:11:52 -0700

Thank you for all the helpful info. I figured it wasn't that easy and I'll end up doing some scripting in the end.

I'm on Windows desktop; so I guess I'll download Cygwin and do this on the client side or I could just logon to the server; since I'm the Admin; and do this via the perl module you mentioned. Thanks for your help.

----Original Message Follows----
From: Todd Denniston <address@hidden>
To: S I <address@hidden>
CC: address@hidden
Subject: Re: How do I get a barebone stripped off list of files changed between2 builds?
Date: Tue, 12 Jul 2005 15:39:06 -0500
MIME-Version: 1.0
Received: from mail.ssa.crane.navy.mil ([164.227.42.3]) by mc4-f14.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 12 Jul 2005 13:45:34 -0700 Received: from ssa.crane.navy.mil (address@hidden [164.227.42.142]) by mail.ssa.crane.navy.mil with ESMTP id PAA22761; Tue, 12 Jul 2005 15:40:52 -0500
X-Message-Info: JGTYoYF78jEX/saG2w4rcUbSHsP4TB9Fy0A5sBYpQco=
Organization: Code 6067, NSWC Crane
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.25glock1 i686)
X-Accept-Language: en
References: <address@hidden>
Return-Path: address@hidden
X-OriginalArrivalTime: 12 Jul 2005 20:45:34.0745 (UTC) FILETIME=[A6D39890:01C58722]

S I wrote:
>
> Hi
>
> I'm trying to get a stripped down list of files modified and committed
> between 2 builds or a build and my working folder in CVS. I would just like
> to see the path/filename only.  Compare it to a list received from the
> developers to verify we're in synch, do the build and deliver their
> corresponding .class files.
>
> Many of the CVS commands (log, tag, history, diff, etc) generate way more
> than I need.  Do I need to write scripts that parse out what I need?  Is
> there a cvs command to do this so I can avoid scripting?
>
> For instance I did the following command:
>
> cvs history -ac -D yesterday  >cvsHist1.txt
>
> And this is yet the closest I've got to what I needed.
>
I am usually happy with what cvs2cl gives me. I do however have a script
which does:
PREVIOUS_DATE="`ls -l --full-time $OUTFILE  2>/dev/null| \
awk '{print $7 \" \" $8 \" \" $9 \" \" $10}'`"

cvs his -calD "$PREVIOUS_DATE" |sort -rb -k 7,7 |\
sort -mub -k 7,7|sort -b -k 8,8 >>$TMP_FILE

the sorts get rid of redundant information to hopefully just show the last
change of each file.

$OUTFILE is a file that was created when the script was last ran, and well I
expect you know what $TMP_FILE is. It still has a lot of information in it,
but I find that info useful, I believe if you take $TMP_FILE and run it
through the following awk it will have just what you want:

 cat $TMP_FILE|awk '{print $8 "/" $7 }'

as I indicated I only use it to see what has changed between runs, more of a
disaster recovery tool than anything (and yes I have _used it for that_),
now that I have cvs2cl and am using CVS vs SCCS.
Your biggest trick is either creating a file with the date you want, or
building up the $PREVIOUS_DATE string by hand.

> Thanks
>
> Steve

--
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]