Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web API for SVN

Tags:

svn

svn-api

I wish to pull change logs via some web API. Is such a thing possible? I'd rather not use an external library to wrap the calls.

e.g. GET http://repo/?branch=123&revision=789 gets the changes to branch 123 in revision 789.

(The major thing is that I don't want to have to check out an entire branch locally to view its changes.)

like image 970
Xodarap Avatar asked Oct 21 '22 14:10

Xodarap


1 Answers

svn log takes both a URL and revision as parameters.

svn log http://repo/PATH_TO_BRANCH_123 -r 789

See svn help log for more.

Subversion has no internal knowledge of branches - they're copies, there is nothing special about them. You could call your branches directory "forks" or "spoons" and it would work identically.

like image 81
alroc Avatar answered Oct 26 '22 22:10

alroc