I would like to use Subversion and checkout only source files (for example: checking out only .c, .cpp and .h files). Is this possible ? If so, how can I do that?
I am trying to get the webkit source code from:
http://svn.webkit.org/repository/webkit/releases/WebKitGTK/
I don’t really want to change the code and check it in again or build it. I just want the source files because downloading the entire release is about 3GB per version.
PARTIAL SOLUTION:
For now I am going to download the directories i want. But i could traverse through the directories recursively, and then download the files that follow the pattern i want.
This is a pseudo python code I will call
GetAllSourceFiles('http://svn.webkit.org/repository/webkit/releases/WebKitGTK/')
def GetAllSourceFiles(directoryName):
list = svn ls directoryName
for name in list:
if name is a file of type c,cpp or h:
do svn export directoryName + name
else if name is directory:
do GetAllSourceFiles(name)
If you know structure of repository, you can checkout specific folders. I never tried it with files. But you need checkout each folder separately. You need to write it like this for typical svn repository
for trunk
for branch
for release
edit
You can try to write a script working in loop
Using
check if folder contains source files.
if folder contains source files, then download it using
Check next folder