Creating a repository on Windows

Use this procedure to create a repository on Windows. The easiest way to create a repository on Windows is to use the command svnadmin that is located in the binary location of the SVN Server files. In this procedure, the top folder structure C:\repository\M3_folder_v1 will be used as an example.

  1. Create a top level sub-folder, use this command:

    mkdir C:\repository

  2. Check that the folder was created as you expected using this command:

    tree C:\repository

    The output will be:

    Folder PATH listing
    Volume serial number is D419-EE56
    C:\REPOSITORY
    No subfolders exist
  3. Create the actual repository using this command:

    svnadmin create C:\repository\M3_folder_v1

  4. Run this command:

    dir

    The output will be:

    Directory of c:\repository\M3_folder_v1
    
    29/06/2008 16:04			<DIR>			 	   .
    29/06/2008 16:04			<DIR>			 	   ..
    29/06/2008 16:04			<DIR>			 	   conf
    29/06/2008 16:04			<DIR>			 	   dav
    29/06/2008 16:04			<DIR>			 	   dbf
    29/06/2008 16:04					      2  	 format
    29/06/2008 16:04			<DIR>			 	   hooks
    29/06/2008 16:04			<DIR>				    locks
    29/06/2008 16:04					    388    README.txt
    				  2 File(s) 390 	    bytes