Since I have a couple of mid-sized personal projects and a lots of code snippets, sample programs, libraries which usage is demonstrated using unit tests, I want to have this whole lump of code available all the time - at home, at work, when using my laptop, etc.
The most logical step is to have this codebase under the source control, so I have it on my home desktop PC (currently under Perforce depot), so here is what I want from this setup:
I want source control database to reside on my USB flash drive which I'm carrying with me all the time, or at least to have some easy way for transfering the database from the current working PC to the USB flash drive and vice versa.
Seamless move of the source control database: I'm considering writing some script for automatically backing up the current state of the repository in some useful form ready to be imported on the PC which I'm intending to use.
Have some of you encounter similar problem and devise a solution?
What do you think about this:
Getting some VMWare appliance (pre-installed Linux virtual machnine), then installing on it just the minimum source control server and the database, and then just carrying the virtual machine image on my USB flash drive and just loading it on the machine which I intend to use and access my personal codebase.