- Subversion: A Great Product
- Repository and Working Copy
- Creating the Repository
- Creating a Share and Mapping a Network Drive
- Structure of the Working Copy
- Checking Files In and Out of the Repository
- Getting Other Peoples Changes
- Adding New Files
- Getting Change Differences for a File
- Getting Information About a File
- Backing up Subversion Repositories
- Conclusion
Creating the Repository
It’s fairly simple to create a Subversion repository:
- Create a folder containing your source code; for example, C:\myproject.
- Structure this folder so that it contains three subfolders: branches, tags, and trunk.
- Copy all source code folders and files into C:\myproject\trunk (for example, including C:\myproject\trunk\guicode).
- Create a repository folder; for example, C:\svn.
- Change the directory to C:\svn.
- Run this command:
svnadmin create repo
- Change the directory to C:\myproject\trunk.
- 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.