Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
909 views
in Technique[技术] by (71.8m points)

google code - Download an SVN repository?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...