[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Keeping only latest version of a file in repository
From: |
Arthur Barrett |
Subject: |
RE: Keeping only latest version of a file in repository |
Date: |
Fri, 11 Nov 2005 12:04:41 +1100 |
Joachim,
I think everones suggestions at better ways of handling the build
process are good. Also the overhead in versioning your PNG files
(especially with CVSNT's -kB) is quite low.
But if you really really want to mimic this VSS behavious read on.
>I'll check the cvs admin thing.
You want cvs admin -o ::rev
To automate it create a perl script and fire it off from Loginfo, eg:
Module-name/directory-of-png truncatefiles.pl $CVSROOT %{sVv}
Eg: the perl script truncatefiles.pl will get these parameters:
/myrepo Logo.png,1.1,1.2 product1.png,1.3,1.4 product2.png.c,1.12,1.13
Your perl script then needs to (psuedocode):
cvs -d $1 admin -o ::rev$3 $2
cvs -d $1 admin -o ::rev$6 $5
cvs -d $1 admin -o ::rev$9 $8
Test carefully...
And don't ask me for a clearer example - I avoid perl and only write C
for money ;)
Regards,
Arthur