70

I'm looking for an online tool that will allow me downloading an online SVN repository (google code etc.).

Do you know of anything?

Update
I want to download the top parent folder and all its subfolders and content, without installing anything on my computer.

Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632

10 Answers10

144

If you want to download SVN repository online (e.g. Google Code) without installing anything, you can use wget:

wget -m -np http://myproject.googlecode.com/svn/myproject/trunk/

If authorization is required, you can use the --user and --ask-password flags, which will prompt you for your password:

wget --user=yourusername --ask-password -m -np http://myproject.googlecode.com/svn/myproject/trunk/

Explaining what the parameter does:

-m, --mirror:

Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to -r -N -l inf --no-remove-listing.

-np, --no-parent:

Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.

niutech
  • 28,923
  • 15
  • 96
  • 106
  • This didn't work for me, the example here worked though - http://logbuffer.wordpress.com/2011/07/11/get-files-from-svn-via-wget/ – Joshua Jan 25 '13 at 02:31
  • 3
    very helpful. thanks. i was trying to download from code.google.com a project that did not have a zip download, and this webpage did just that... – techtheatre Apr 30 '13 at 18:14
  • It doesnt work for [quickgraph](http://quickgraph.tigris.org/svn/quickgraph/trunk), returns empty zip. – Emperor Orionii Aug 14 '13 at 07:23
  • @EmperorOrionii Quickgraph repos need a User/Password, the website cannot go through. The wget version worked for me on another repos. – orion78fr Dec 02 '13 at 09:11
  • 8
    Site is down unfortunately, are there any alternatives? – Igor Čordaš Feb 18 '14 at 14:52
  • >> When does it not work? Sometimes against WebSVN (e.g., v. 2.3.3). Running this command yields files like: .project ... .project@op=rss&peg=20 .project@op=rss&peg=21 ... – ftexperts Jun 25 '14 at 19:21
  • Google Chrome tells me that site is phishing. – Ariel Sep 03 '14 at 07:21
  • 2
    totally worked for me. but it did take some time to download a single SVN repo from Google Code (or is itjust my internet connection haha). Thanks! – patrickjason91 Jun 29 '15 at 08:33
  • This works on `svn.apache.org` too. But the resulting tree has an `index.html` file in every directory. I suspect it's not too friendly to the webserver either. On that server is also MUCH slower than just doing a svn checkout. (I stopped the wget after 15 minutes but the svn checkout took less than a minute.) – Eponymous Oct 19 '15 at 21:26
  • @Eponymous This is for those who don't want to install SVN. You can also remove all _index.html_ files by `find . -name 'index.html' -delete` – niutech Oct 28 '15 at 18:03
  • `-np` `--no-parent`:: Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded. – Imtiaz Shakil Siddique Apr 11 '20 at 06:05
  • `-m` `--mirror` :: Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to `-r -N -l inf --no-remove-listing`. – Imtiaz Shakil Siddique Apr 11 '20 at 06:06
  • 2
    `If you want to download SVN repository online without installing anything`? That's just untrue. `wget` is a third-party program that doesn't come bundled with Windows. You definitely have to or had to install it. – cowlinator Dec 08 '20 at 05:39
  • This worked great for me on Linux, but is there a Windows (PowerShell) option? There is 'Invoke-WebRequest' which has the alias of 'wget', but they don't function quite the same. – Michael Yaeger Feb 01 '22 at 16:58
  • this didn't work for me b/c my repo had actual index.html files in it that got replaced with html for the directory listing – jessieloo May 05 '22 at 15:54
  • This link is useful for me to install and use wget: https://www.jcchouinard.com/wget/ – Md. Masudur Rahman Jun 16 '22 at 07:17
14

.NET utility for downloading google code project files(SVN). Also has Git support. Requires .Net 2.0

http://downloadsvn.codeplex.com/

EDIT (now located here https://github.com/ststeiger/DownloadSVN)

Benjamin Loison
  • 3,782
  • 4
  • 16
  • 33
user3214758
  • 149
  • 1
  • 4
11

Install svn, navigate to your directory then run the command svn checkout <url-to-repostitory> ..

Please provide us with some details like your operating system and what/where you want to download.

Dunhamzzz
  • 14,682
  • 4
  • 50
  • 74
5

signup to github and then use:

https://import.github.com/new.

instructions:

https://help.github.com/articles/importing-from-subversion/#importing-a-subversion-project-to-git-using-svn2git

once you have a git repo on github you can download zip

tmx
  • 446
  • 6
  • 7
3

One the upper left in Google Code it has a link "Checkout"

Click that and you will get a command line suggestion:

Command-line access

Use this command to anonymously check out the latest project source code:

 Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://yourfolder.googlecode.com/svn/trunk/ yourfolder-read-only

If you want a subfolder only then add it after trunk

If you are on linux & have SVN installed just CD to the folder where you want it installed first then run the above command - it will download fast

I tried all the other suggestions & this is the only thing that worked, couldnt do it with bazaar or svnDownloader app.

Gareth Thomas
  • 420
  • 3
  • 4
3

If you want a GUI to access SVN repos you can use http://tortoisesvn.tigris.org/ (and its Repobrwoser) If you want a browser based tool, to browse ANY SVN repo without installing SVn on your machine, i don't such a tool. I know only tools to install to your webserver and needed a installed SVN client on these server. To checkout or export a svn repo you need a svn client. (or you copy the files from the command line =) )

Thargor
  • 1,862
  • 14
  • 24
  • Then you must copy these folder per command line, if you have accesses. But then you copy all .svn folder, too. – Thargor Dec 05 '11 at 14:45
  • I have access, of course, can I do that without installing anything? – Shimmy Weitzhandler Dec 05 '11 at 15:28
  • Yes, this are normal Files, so you can copy they by the normal way. But all these .svn folders (in every folder or subfolder svn creates such a folder to store his informations) uses more space than the project files, so an export is the better way. – Thargor Dec 06 '11 at 13:36
  • https connections are slow on my ISP and i suddenly get "connection closed by server " message. but using eu5, i can finally get the repo i wanted. – Mehdi Fanai Aug 30 '13 at 22:32
2

Google page have a link that you can download the source code and the full tree.

Go to the Source tab, then click on Browse

then you see the link for Download it as:

Community
  • 1
  • 1
Aristos
  • 66,005
  • 16
  • 114
  • 150
  • There is no Download zip | tar.gz link there. – Narek Apr 07 '15 at 06:42
  • @Narek I browse a random project and you have right I do not see this download - how ever when I add it and the screen shots are original, I do not know why on some exist and on some other not. – Aristos Apr 07 '15 at 19:02
1

For me DownloadSVN is the best SVN client no install no explore shell integration so no need to worry about system instability small and very light weight and it does a great job just recently i had a very bad experience with TortoiseSVN on my WindowsXP_x86:) luckily i found this great SVN client

pet29
  • 39
  • 4
0

If you have proxy i suggest using SVNGITDownloader it is under .NET Framework and its source code is available

Mohsen Zahraee
  • 3,309
  • 5
  • 31
  • 45
0

If you're talking about checking it out, you probably want the subversion itself. If you're interested in history, I'd use git-svn. If you want the real subversion clone, I don't know, there was something. :)

Michael Krelin - hacker
  • 138,757
  • 24
  • 193
  • 173