views:

392

answers:

4

I am taking some work home with me these days and I transport it on a USB key because my work is on a private intranet.

I am using Visual Studio 2008 and I find that the performance of builds is degraded by working off the the key. My initial thought to improve performance is to use Robocopy to mirror the directory locally and then when I'm ready to take stuff back to work I just use Robocopy again to mirror the working folder from the hard drive onto the USB Key. So, my roundtrip looks like this

USB -> Hard Drive -> USB

Does anyone see any potential issues with that? I guess I'm worried about the contents of the .svn folders getting messed up and disallowing me from uploading my source code when I get back to work

+4  A: 

As long as robocopy copies the entire .svn folder it shouldn't case any problems as far as I'm aware.

Unkwntech
+1  A: 

You could also try to use DVCS that interfaces with Subversion (e.g. Mercurial, or git svn). DVCSes are much better at working offline, too (and Mercurial Queues are awesome :)).

You'd have repository on USB, and on your local drive. Workflow would be: update repository on USB from SVN in work, push changes from USB to local repo in home, work on the code (with full change tracking), push changes from local to USB, push changes to SVN in work.

PiotrLegnica
Interesting thought! I will give it a try
Jeffrey Cameron
+1  A: 

You should make sure you're not working off a FAT32 partition on that stick, since this might mess up file change/creation dates.

As for copying SVN folders: I do this regularly and never had any issues with it.

sbi
hrm, I hope not because I just tried the robocopy thing! :-) I'll comment here if I have any issues tomorrow at work
Jeffrey Cameron
A: 

I've used Unison for years now, works like a charm - it has a benefit of syncing everything, the compiled binaries,etc.. so can quickly catch up where left work.

Am trying git-svn this has the benefit of seeing the whole repository with all branches, so commit+merge should work as well.

inger