Pulling the latest commit revision number

Discussion related to implementation and use of the H.323 Plus H.323 stack at http://www.h323plus.org.
Post Reply
mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

Pulling the latest commit revision number

Post by mazilo »

On a Linux system that has no prior source repositories on any SVN and/or GIT packages, I use both svn info http://<repository trunk>/ | sed -ne's/^Revision: //p' and git ls-remote http://<repository trunk>/ HEAD | cut -f1, to remotely check for the latest version of commit revisions for SVN and GIT packages, respectively. I wonder if this can be done with a CVS repository, too. If so, how?

So far, I have not been able to find the best way to do this. The closest thing I have come to achieve this is to use cvs -d:pserver:anonymous@h323plus.cvs.sourceforge.net:/cvsroot/h323plus history -options -D `date -d yesterday +%F` to show me the last commit done on the day when the above instructions get executed on y Linux machine. In other words, if the latest commit was done the days before, the scripts will fail to detect the latest commit. So, this is not good, unfortunately. :mrgreen:

mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

Re: Pulling the latest commit revision number

Post by mazilo »

So, no one here knows the answer to my inquiry? :(

Post Reply