On Wednesday 09 November 2005 08:53, [EMAIL PROTECTED] wrote: > > Oh great font of knowledge that is SLUG, I genuflect in your general > > direction. > > > > I've got a CVS query which I hope is an easy one to answer, only trouble > > is, CVS has too much google juice and I can't seem to separate the wheat > > from the chaff. > > > > I'm CVS'ing some scripts, the current version control procedures are to > > (optionally) add comments to the start of the file. Since there's no > > real control over this, I'd like to put CVS over the top of it and have > > something create these entries. > > > > Personally, I'm happy with 'cvs log', but they really want to keep the in > > script comments, for at least the last revision. > > > > I'm hoping there's a way of putting a keyword into the script and have > > CVS replace it with the latest revision info and log message. > > > > Hope this makes sense, I have a small herring which I am ready to > > sacrifice in your name.
Ummm maybe I don't understand ... but this technique is what I use: #=================================================================== # This is jolly nice descriptive stuff # lots of waffle # $log:$ # CVS comments # more cvs stuff # even more # and my final non cvs comments go here # and here #=================================================================== So the CVS stuff is embedded into the middle of the scrip comments using your comment prefix ie # or " *" whatever you choose Note in the above example the CVS comments part expands as comments are cvs'd in. You may even have multiple entries eg multiple log sections (duplicated) <rant> has anybody used subversion sucessfully? I tried. Wow! 3 users check out the same source, each fiddled, checked in in deliberatly assignign order and updated. We ended up with the SAME executable with 3 sets of what-strings, all differant so </subversion> !! </rant> James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
