1/4/11

SVN DB on portable device. UBUNTU

Recently I wanted to start a new project with version control. This will be a personal project so I don't want to use any SVN server. That is why I was looking for a way to create an SVN repository on my portable USB drive.

I've found a lot of "how to create a portable source control..." but most of them were about GIT.
Why I'm not using GIT? Because I know SVN and I do not want to learn how to use GIT... for now.

[UPDATE 2012-12-19]GIT solved all issues I had with SVN. To make a dongle repository just create a bare GIT repository there and push your changes from PC.
I stopped using SVN

If you still want to use SVN here you have it:

I assume that you have SVN installed on your ubuntu.

  1. Create repository on portable device.
  2. I'll create repository on PORTABLE_DEVICE in folder SVN_REPO/TEST_REPO
    svnadmin create /media/PORTABLE_DEVICE/SVN_REPO/TEST_REPO That is all. Repository is created and ready to use.
  3. Lets use repository.
  4. First checkout your repository from file (DB on your portable device) to any directory on your PC.
    svn checkout file:///media/PORTABLE_DEVICE/SVN_REPO/TEST_REPO
    Create project files and add them to repository.  svn add testFile1  svn add testFile2  svn commit -m "test commit"
    You can checkout your repository from file (DB placed on portable device) on any PC. TortoiseSVN can be used to checkout your portable repository and track changes on Windows.
  5. Summary
  6. Now you can track changes in your code on portable device.