TortoiseSVN. Use it to control the subversion tools.
Setup the software
setup Apache. When it is installed completely. Use the browser and add the addresshttp://localhost to check.
setup svn-1.4.5-setup.exe. When the setup is finished. Open the cmd and add svn --version to check it is working or not.
config the svn
create the file in the hard disk. E:\svnroot\MyProject.And then use svnadmin create E:\svnroot\MyProject command to create relative config file and folder .If it can do ,you can see there are many files and folders which are created in the MyProject folder.
open conffolder, and then open svnserve.conffile, find out the bottom line # password-db = passwd. And remove the
remark #,it means if you want to enter MyProject file ,you need
password.However, where to set our passwords. step 3
open the anther file in the conf folder which is called passwd,and then use the text editor to add the following sentences.
写道
[users]
hadeslee=hadeslee1234
tom=123456
The
above sentences mean that we created two users.one is hadeslee,
password hadeslee1234 .And the other is tom ,password is 123456.
create the file called access.auth. And add the following sentences:
access.auth 写道
The
above sentences mean that hadeslee has the read and write authority to
control the MyProject and module1 folders.But tom only has the read and
write to control the module1 folder.
Config the apache
Enter Subversion home folder,find the follow two files in the bin folder.
mod_authz_svn.so
mod_dav_svn.so
copy these two files to the Apache home's modules folder.
open Apache home's conf folder ,open httpd.conf file and add the following sentences:
httpd.cof 写道
generate users.auth file .Enter the apache home's bin folder, input the following commands:
D:\Program Files\Apache Group\Apache2\bin>
htpasswd -cb users.auth hadeslee hadeslee1234
Automatically using MD5 format.
Adding password for user hadeslee
D:\Program Files\Apache Group\Apache2\bin>
if you want to add another use ,use the following commands :
D:\Program Files\Apache Group\Apache2\bin>
htpasswd -b users.auth tom 123456
Automatically using MD5 format.
Adding password for user tom
D:\Program Files\Apache Group\Apache2\bin> tip: c means to recreate the users.auth.
copy the users.auth to E:/svnroot/MyProject/conf/
Total, all is finished . open the browser and input the http://localhost/svn/MyProjectaddress to check
If you want to add other project in the subversion server.There are several suggestions:
put the project in the MyProject folder ,you don't need to add any other setting .
If
you want to create the other folder ,such as YourProject .You can add
<Location...>setting into httpd.conf file.Of course ,you should
also recreate the password.
eclipse config
add the eclipse plugin
address:http://subclipse.tigris.org/update_1.4.x/