Home > Articles > Web Development > Content Management Systems

  • Print
  • + Share This
Like this article? We recommend

Creating the Repository

It’s fairly simple to create a Subversion repository:

  1. Create a folder containing your source code; for example, C:\myproject.
  2. Structure this folder so that it contains three subfolders: branches, tags, and trunk.
  3. Copy all source code folders and files into C:\myproject\trunk (for example, including C:\myproject\trunk\guicode).
  4. Create a repository folder; for example, C:\svn.
  5. Change the directory to C:\svn.
  6. Run this command:
    svnadmin create repo
  7. Change the directory to C:\myproject\trunk.
  8. Run this command:
    svn import –m "Initial Import" . file:///c:/svn/repo

The above commands should run successfully under Windows and result in creating a repository. My advice is to start small and just copy a few source code files in Step 3. If it works for five files, it should work for 5000, 10000, and so on. My assumption is that the trunk folder in Step 3 includes at least one subfolder called "guicode" (that is, source code required to create a Java GUI). You can, of course, use any folder name you like. I’ll use "guicode" to describe the remaining commands.

  • + Share This
  • 🔖 Save To Your Account