Subversion to download files

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Subversion to download files

Postby kadnan » Mon Dec 04, 2006 9:18 pm

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
kadnan
Battalion Quarter Master Havaldaar
 
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 12940796
Location: Karachi,Pakistan

Postby lambda » Mon Dec 04, 2006 11:02 pm

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby kadnan » Tue Dec 05, 2006 12:06 pm

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]?
kadnan
Battalion Quarter Master Havaldaar
 
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 12940796
Location: Karachi,Pakistan

Postby lambda » Tue Dec 05, 2006 2:20 pm

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby fawad » Tue Dec 05, 2006 8:55 pm

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.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby kadnan » Wed Dec 06, 2006 12:33 pm

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.
kadnan
Battalion Quarter Master Havaldaar
 
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 12940796
Location: Karachi,Pakistan

Postby fawad » Thu Dec 07, 2006 9:27 pm

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.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron