Page 1 of 1

Pulling the latest commit revision number

Posted: Sat Nov 12, 2011 5:02 pm
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:

Re: Pulling the latest commit revision number

Posted: Mon Dec 05, 2011 12:24 pm
by mazilo
So, no one here knows the answer to my inquiry? :(