I received this reply privately from Andrew Hamilton-Wright and since I am
not
familiar with Python myself I thought I should post it so that those who are
can go about making a Python (or TCL) script from it.
I would be very interested in receiving a copy of such a macro for testing.
And, thanks Andrew!
/Bo
-----Original Message-----
From: Andrew Hamilton-Wright
Sent: den 10 februari 2002 23:06
To: [EMAIL PROTECTED]
Subject: Re: [Cvsnt] How can checkout CVSROOT/modules
Hi;
I saw your comments in the digest about putting together a
Python macro for WinCVS, so I thought I'd send this sort
explanation.
I'm not a WinCVS user (I prefer the command-line tool),
but all you will probably need is to convert:
cvs history -c -a -l | awk '{sub(/[/].*/,"",$8); print $8;}' | sort -u
to Python. All the above does is:
a) collect the output of the cvs history
b) strip field 8 (delimited by spaces/tabs) of all
characters following the first '/' character
c) prints _only_ field 8 (throws away all other fields)
d) perform a unique sort (throwaway duplicates) of
the result.
I imagine that would be quite easy in Python.
Hope that helps you out,
Andrew.
_______________________________________________
Cvsnt mailing list
[EMAIL PROTECTED]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt