[Top][All Lists]

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

Re: Lastest Revision of a file

From: Todd Denniston
Subject: Re: Lastest Revision of a file
Date: Mon, 06 Dec 2004 10:09:18 -0500

Joao Ronaldo wrote (at  6 Dec 2004 10:48:53 and again 6 Dec 2004 11:31:45):
Joao, please note RFC 1855[1] , section 2.1.1, item 12 (if I counted
  "Remember that people with whom you communicate are located across the
globe. If you send a message to which you want an immediate response, the
person receiving it might be at home asleep when it arrives. Give them a
chance to wake up, come to work, and login before assuming the mail didn't
arrive or that they don't care."

also from "How To Ask Questions The Smart Way", "If You Can't Get An
"In general, simply re-posting your question is a bad idea. This will be
seen as pointlessly annoying."

> Hi folks!
> What's the better way to know that a revision of a file is the lastest
> one of the main trunck?
I am not saying this is the best/fastest or even a good way, but it should
do the minimum of what you ask.
cvs log FILENAME |grep -e head: -e "^revision "| \
grep -e "1\.[0-9]$" -e "1\.[0-9][0-9]$" \
-e "1\.[0-9][0-9][0-9]$" | \
head -2|grep "^revision "

grep FILENAME CVS/Entries |awk -F\/ '{print $3 }'

compare the output of both commands.

> Besides that, someone knows how to lock a file of the repository,
> avoiding it to be commited for every one, even the one that locked the
> file?
`cvs admin -l` [3] can be used but is generally seen as a Bad Thing.
More acceptable is usually using something like cvs_acls[4].

> Thanks!



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]