Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For instance, is there a way for me to use svn or cvs (and how to find out which?) for a project if I have their project page -- for example,

share|improve this question
up vote 1 down vote accepted

Looking on the Source page for that project, it gives the CVS command

cvs login

Other projects that use CVS should follow the same naming convention. SVN looks to be similar:

svn co https://<project><project>

share|improve this answer

Something tells me you want to 'screen-scrape' to figure out which revision control a project uses. The project page has the link to the main 'Code' page which you can grep out by looking for the word scm. For e.g: The command (in unix, say):

curl -s<project-short-name>/ | \
grep 'scm/?type' | sed 's/\(.*type=\)\([a-z]\+\)\(&amp.*\)$/\2/g' 

Should get you the words svn or cvs or both (or even other words ?) from the html links. This is just to illustrate how you can figure out the SCM a project uses programatically. You might have to write more or less code depending on where you want to 'script' this i.e. Questions like, is it on unix or windows ? is it for an eclipse plugin ? and many more come to mind.

Disclaimer: Many websites consider screen scraping a violation of the Terms of Service. Please check the policy to see if its ok to scrape the web-page before you do.

share|improve this answer
This is indeed be nice but I will stick with manually looking up for now... – crippledlambda Apr 6 '12 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .