We use svn and I am going to start working from home. I had the idea of bringing in my laptop, checking out the project and taking it home, returning and reversing the process on Monday.
But it's a bulky laptop and I don't fancy riding to work with it on my back.
Would it be possible instead to:
This way, everything is logged and stamped for when I am working in the office/home, I don't have to lug my heavy laptop around and source control remains consistent.
Is this the correct way to do this? Just checking before I enter another world of SVN pain.
We're using SVN, VisualSVN Server, Visual SVN client and TortoiseSVN.
This is the normal process to work with SVN:
When you update the changes using your work login it will show who changed and checked in the files. The only hassle you'll have is to fix merge conflicts that may appear.
If you have the need to make local commits on your thumb drive alone, you can achieve this by creating a new svn repository on your thumb drive. However you will need to copy files between the repository on your thumb drive and to the repository at work.
You can also do local commits by using distributed version control as pointed out by Alex Martelli, this is done by cloning the repository to your thumb drive and then sync it back to svn.
Subversion assumes that filestamps have at least a 1 second precision to check if files have changed but the FAT filesystem on most USB drives supports only 2 second precision. Theoretically it can miss changes in your files in the first second after updating, committing, etc. etc.
I would recommend formatting your USB drive as NTFS to resolve this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With