1. Download Subversion latest version
2. Download Tortoise (Subversion Client) Latest version
The latest version of the software has been downloaded in the folder
Steps for Server Part
1. Install the server and install the Tortoise client on the Server computer
(The reason to install Tortoise client on the server computer is because Tortoise client can help you to create and manage repository in the server computer and you can forget about the admin command of subversion server. Note that the newest version of Tortoise only uses file based repository and does not use BD format repository. The file based repository is recommended by Tortoise and community.
2. Create Repository in server using command line
svnadmin create "m:\svn_repos
or Using Tortoise
Right click the m:\svn_repos directory and select create repository here
3. Run the Server. By the following command.(Assume subversion is installed at c:\subversion\)
c:\subversion\bin\svnserve.exe --daemon --root M:\svn_repos
4. Right Click any where in the desktop and choose Tortoiseàrepo-browser
Assume you are going to create a new project called monkey, then inside the repo-browser, create the following directory structure
e.g. /monkey/trunk
/monkey/branches
/monkey/tags
5. Open svn_repos\conf\svnserv.conf
i) uncomment the following lines
anon-access = read
auth-access = write
password-db = passwd
Open passwd
i) add username and password pairs there
ii) restart the server
6. Install it as a service (Optional)
Tricky part is: Beware of the space after the = sign
sc create svnserve binPath= "c:\Subversion\bin\svnserve.exe --service -r M:\svn_repos" DisplayName= "Subversion Service" depend= Tcpip
Remark: In 10.11.5.107 Windows 2003 server, I fail to do so, In Windows XP, I succeed.
Steps for Client Parts
1. Install Tortoise and reboot the computer. Reboot is required because Tortoise is integrated into your Windows Explorer.
Note if you are using Windows 2000, you need to download a GDIPlus component from Microsoft It is downloaded for your and is located inside the software folder. The name of the file is WindowsXP-KB957096-x86-ENU.exe.
2. Create a Project directory. E.g. c:\develop\monkey
Right click inside the monkey directory and press Checkout.
In the URL of the repository, enter
svn://10.11.5.107/monkey/trunk
Press Ok to continue
3. Choose the right repository and press ok. You may start to use the subversion.
4. Note that the main idea of subversion is edit-merge (resolve conflict) and commit. It optimistically allows edit of any files and resolves the conflict during the update or commit stage. If you want to prevent this, you may require each teammate to acquire a lock on a file before editing so that others know the file is being edited and do not change that.
Note:
1. Please also see the reference document from downloaded from Internet. It is inside the folder
subversion_installation\ref\subversion_installation
2. Visual Studio has integration support for subversion but Visual Studio Express does not.
留言
張貼留言