Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If an svn repository is exposed through, say, http://svn to users, and there's a file called script.sh, is there a way one can get the latest revision number of script.sh just through http access?

I'm looking for a specific URL syntax. Something along the lines of http://svn/rev?script.sh perhaps?

Thank you.

share|improve this question
    
This may be better on stackoverflow –  Brettski May 3 '10 at 3:04
add comment

1 Answer

If you access repository through HTTP server, it usually provides you with the latest revision of the file in the repository. The only thing you need is to build your path properly. Let's suppose you have a directory called scripts in the root of your repository, which contains the script you need, then your URL will most likely be following:

http://<svnserver>/<repo>/scripts/script.sh

The actual path will depend on how you configure the HTTP server or its svn module (e.g. mod_svn for Apache) to expose the path.

share|improve this answer
    
I think he means the revision number of the file's latest log entry. –  Daniel Beck Feb 16 '11 at 22:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.