Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all files in a remote SVN repository?

I access a large remote SVN repository. Since I usually only need a tiny subset of its content I did a "sparse checkout":

svn checkout --depth empty svn+ssh://... src 

Whenever I need a folder from the repository I can just do

svn up folder 

and when I don't need it anymore I use

svn up --set-depth exclude folder 

But now I need a complete list of all the files in the repository and I don't want to do a complete checkout just to get the file and folder names.

I already tried svn ls -R which will indeed list some files I didn't check out but still there are some missing. I know because it does show everything in the current directory. Now I could semi-manually execute svn ls and svn up --depth empty for every new-found directory, but I wonder if there is some better alternative.

In contrast to How do I list all files ever committed to the repository? I'm only interested in the current content of the repository and I do not have access to svnadmin. Neither can I install software on the repository server.

like image 741
Koma Avatar asked Feb 01 '13 12:02

Koma


People also ask

How do I view svn files?

If you want to review what's happened to your files then you can check this by selecting the top-level parent folder and clicking on the Visual SVN 'Show log' option. The resulting dialogue box showing you a history of all the changes for your local files.


2 Answers

This lists all files recursively:

svn ls -R URL-OF-REPO 
like image 94
Lazy Badger Avatar answered Oct 10 '22 08:10

Lazy Badger


svn list --recursive https://myrespository.my.com/Myproject 

I think that works for current and all subdirectories as I tried. This one lists all branches and tags as well, and all their subdirectories and files.

like image 30
Gjordis Avatar answered Oct 10 '22 08:10

Gjordis