Subversion to download files

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Subversion to download files

Post by kadnan »

Ignore my ignorance and dumbness about Subversion. I want to download files from sourceforge via Subversion Client. First of all I am not sure whether it's possible or not to fetch all files on my local hard disk? if yes then any command?

Thanks
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

do you have subversion installed? type "svn --version" to see.

to check out files from a subversion repository, type

Code: Select all

svn co http://path/to/svn/project
or

Code: Select all

svn co svn://path/to/svn/project
the instructions on the website for the software will give you the proper repository path.
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Post by kadnan »

lambda wrote:do you have subversion installed? type "svn --version" to see.

to check out files from a subversion repository, type

Code: Select all

svn co http://path/to/svn/project
or

Code: Select all

svn co svn://path/to/svn/project
the instructions on the website for the software will give you the proper repository path.
I don't have some standalone client. I found a plugin of Windows Explorer so that one can browse subversion within Windows EXplorer. would you recommend any client[for Windows]?
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

if it's an http repository, you can use any web browser to view the files in the repository. if it's an svn repository, you probably need to check it out on your local machine before you can view it. i vaguely remember a commandline tool to browse repos (it let you type "cd" and "ls" to look inside the repo) but i used it long before svn 1.00, and i can't find it now.

i recommend tortoisesvn, which is probably the windows explorer extension you found.
fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Post by fawad »

I like to use the standard subversion commandline client, but others at my workplace use TortoiseSVN. Tortoise supports local, http, svn, and svn+ssh servers.

Oh, and if you look really carefully, the sourceforge website provides the commandline for checking out the code from the repository. No thinking needed.
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Post by kadnan »

lambda wrote:if it's an http repository, you can use any web browser to view the files in the repository.

It's an HTTP respository and I can view files but it's pretty hectic to view individual files when they are more than 100. This is why I wanted to download all of them in a go.
fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Post by fawad »

You can do svn co or svn export for exporting out just the latest rev.

Also, if the repository is being exposed using viewcvs (AKA viewvc), it usually has an option to export out the currently selected subtree into a zip file.
Post Reply