- 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 a Share and Mapping a Network Drive
The above directions create a repository on a given machine. It’s likely the working copies will be located on remote client machines, particularly if you have more than one programmer. If this is the case, then you’ll need to share the repository folder (C:\svn) as a network drive. Again, this is easy to do, but be aware that in doing this you will be sharing these files across the network. So make sure that you’re happy about the resulting security situation. To share the repository folder on the network, do the following:
- Start Windows Explorer by pressing the Windows key, followed by pressing E.
- Right-click the C:\svn folder.
- Select Sharing and Security.
- Select a share name; for example, svn.
- Click Share this folder on the network.
- Click Allow network users to change my files.
- Click OK.
At this point, the repository is shared out for network use. Next, on a client machine do the following to map a network drive:
- Start Windows Explorer by pressing the Windows key, followed by pressing E.
- Click Tools followed by Map Network Drive.
- Click Browse and locate the shared repository folder by the name svn.
- Click Reconnect at login to ensure that the mapping is preserved across reboots.
- Click Finish.
At this point, you have published the location of the repository on your local network. Client machines should now be able to see and use their network drives. The next step is to create a working copy on one of the client machines.