* Verify that the installation was successful svn
#svnadmin --version
* Create data warehouse svn
#svnadmin create /data/svn/svndata/spms
* Start svn service
#svnserve -d -r / data / svn / svndata / spms single warehouse start
# Svnserve -d -r / data / svn / svndata multi-warehouse starts (recommended)
* Verify the success of start svn
#netstat -lntup | grep 3690
* Client detected files to the current directory
#svn checkout svn://ip:3690/yourRepoName .
* The local files under version control
#svn add filename
* Will submit a file to the server
#svn commit -m “this is a test” filename
* Update files from the server to the local
#svn update [fileName]
* Delete local file
#svn delete filename
* Restore files
#svn revert filename (revert recovery operation is not only submitted)
SVN service starts
#svnserve -d -r /data/svn/svndata
-d the background
-R repository root directory
SVN commonly used commands
svn checkout out a working copy from a repository
svn commit the changes to the documents submitted to the repository
svn update updates your working copy
svn add delete files to the repository
svn delete delete files from the repository
svn revert Undo all local Editing
svn info display information of a local or remote entry
svn list lists the repository directory entry
svn status to view the current status of the work area
svn help get help
svnadmin command (via direct path to access the repository)
svnadmin switches
--bdb-log-keep
(Berkeley DB specific) close the database log automatic log removal
--bdb-txn-nosync
(Berkeley DB specific) Disables fsync when committing database transactions
--bypass-hooks
Bypass the repository hook system
--clean-logs
Delete as appropriate Berkeley DB logs
--force-uuid
By default, when loading the repository that already contains revisions of data (UUID ignore the stream, set this option causes the repository UUID UUID from the stream)
--ignore-uuid
By default, when loading an empty repository (using the UUID from the stream, this option will lead to the neglect UUID)
--incremental
Exporting a difference for the revision of the previous revision, instead of the usual full results.
--parent-dir DIR
When loading a dump file, root path DIR instead of /
--revision ARG
Specify a revision operation
--quiet
不显示通常的过程——只显示错误
--use-post-commit-hook
当导入使用一个转储文件时,在每次新的修订版本产生时运行版本库post-commit钩子
--use-pre-commit-hook
当加载一个转储文件时,每次新的修订版本产生时运行版本库post-commit钩子。如果钩子失败,终止提交并中断加载进程
svnadmin create 创建一个新的空的版本库
svnadmin deltify [-r LOWER[:UPPER]] REPOS_PATH 修订版本范围的路径的增量变化
svnadmin dump REPOS_PATH > repofile 将文件系统的内容转储到标准输出
svnadmin help 帮助
svnadmin hotcopy REPOS_PATH NEW_REPOS_PATH 制作一个版本库的热备份
svnadmin list-dblogs REPOS_PATH询问Berkeley DB在给定的subversion版本库有哪些日志文件存在
svnadmin load REPOS_PATH 从标准输出读取
svnadmin lslocks REPOS_PATH < repofile 打印所有锁定的描述
svnadmin lstxns REPOS_PATH 打印所有未提交的事物名称
svnadmin recover REPOS_PATH 将版本库数据库恢复到稳定状态
svnadmin rmlocks REPOS_PATH LOCKED_PATH 无条件的删除版本库的一个或多个锁定
svnadmin rmtxns REPOS_PATH TXN_NAME 从版本库删除事物
svnadmin setlog REPOS_PATH -r REVISION FILE 设置某个修订版本的日志信息
svnadmin verify REPOS_PATH 验证版本库保存的数据