Build and use SVN server under Mac

Source: Internet
Author: User
Tags svn svn client svn update

---------------------------------------------SVN Server Setup
Create SVN server Management on Mac

-------------Step1
$ svnadmin Create Svndir

-------------Step2
conf > svnserve.conf Modifying configurations

# anon-access = Read
# auth-access = Write
# password-db = passwd
# authz-db = Authz
Remove these front # and spaces,
Anon-access represents anonymous access rights
Anon-access = None means anonymous access is forbidden and requires an account password to access

--more--

-------------Step3
conf >passwd file
Add zyx=123456 after [users] to indicate that the ZYX account was created and that the password is 123456.
Such as:

[Users]
# Harry = Harryssecret
# sally = Sallyssecret
xyz=123456


-------------STEP4
conf >authz file
passwd user xyz Plus to + = Jackgroup Create user group,

such as: jackgroup=xyz

-------------STEP5
Group Permission settings
RW read-write permission, [/] indicates root directory

such as: @jackgroup =RW

-------------STEP6
Turn on SVN server
$svnserve-D-R Svndir


-------------shut down the SVN server
Find PID
Ps-e | grep svnserve

Turn off PID
Kill 1190
Or
Killall Svnserve


-------------using the SVN client feature

Importing code from the local to the server
SVN import Weibo

Weibo all content uploaded to the server svn repository Weibo directory, the content in quotation marks is a comment description
$ svn import Weibo Svn://localhost/svn/weibo--username=xyz--password=123456-m "Initialize Imports"


Authorization failed problem appears:
Within the Conf>authz file, add [/] to represent all resources in the root directory

-------------Download the code from the server side to the client locally

SVN checkout Svn://localhost/svn/weibo--username=xyz--password=123456/users/apple/documents/code

Sign up to the current directory/users/apple/documents/code

-------------commit the changed code to the server
Add to
SVN Add File/Folder

Change
SVN commit-m "modified main.m file"
When the problem occurs:
The log message is a pathname (was-f intended?); Use '--force-log ' to override
Workaround:
SVN ci submission file-M "Change new description"

-------------update the server-side code to the client
SVN update

Other methods
SVN help

Build and use SVN server under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.