简体   繁体   中英

Checkout svn directory without client software?

The computers where I work are locked down very tight, I have one computer I can connect to the internet with, but only Internet Explorer and Outlook can access the internet. I also cannot install software on it. I have a separate "standalone" computer which I can install or run anything I want on, but I cannot connect it to the internet.

I need to download a directory from a gforge svn. Is there a way to do this from my browser? I imagine a website where I can enter the address of the directory I need to checkout, and it produces a zip file I can download in Internet Explorer that contains that directory and all of its subdirectories. I need to download the code on my internet connected computer, and transfer it to my "standalone" computer to run it.

I've searched around a bunch and many people have similar problem but don't have the same restrictions as me. For example many people can use DownloadSVN because it is a portable program that doesn't need to install anything on your computer. However, in my case the DownloadSVN executable is not allowed to access the internet.

Most github projects, and some gforge projects have an option to "download zip" of the current directory, that is great, however the gforge svn I need to download does not have this option. I could go through and manually download each individual file, but this would take many hours.

Not sure if it matters but I'm on windows 7 with internet explorer 10. The key information is I cannot access the internet from any software I install on my computer, so any kind of client software that runs outside of IE will not work (maybe something that can run within IE like some kind of javascript would work though?).

The best I can think of with that draconian of a restriction is to write a script that automates IE, "navigates" with it to the web view of the source repository, and downloads each linked file (including recreating the directory structure).

Starter:

$ie = new-object -com "InternetExplorer.Application" 
$ie.navigate("URL_TO_GFORGE")
while($ie.ReadyState -ne 4) {start-sleep 1} 
$ie.visible = $true 
$doc = $ie.Document

See for more (I copied the code from here) at IE Automation with Powershell

Then you'd have to walk through the DOM of the web page that's loaded, locate each of the files, and download that way.

But every time there's a new release of the code you're "checking out", you'll have to do the whole thing all over.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM