1, the code base is very simple to build
Svnadmin create command record, SVN manual recommends that the project use the following directory structure
Project
Trunk
Branches
Tags
2, Code Import
SVN import. File:///home/kkmao/expe/repos-m "Init import"
3, code Check out
SVN checkout File:///home/kkmao/expe/repos/trunk.
4, Code information query
SVN info can see your local and which library is connected and the current version
SVN status Path/file view locally modified file status
svn diff-r 2:3 path|grep Index lists differences in version 3 compared to version 2 (column filenames only)
5, Code Maintenance
SVN status Path/file --View locally modified file status
svn add path/file --Flags to add local files to the code base
svn commit-m "" Path/file --Submit local file to database, comments must be written
SVN update path/file --Update the code library's files to local
svn revert file --revert to the version in the code base
SVN resolved path/file -resolves the conflict and removes three temporary files (Filename.mine,filename.roldrev,filename.rnewrev), generally not, manually delete them directly
svn diff-r 2:3 path/file --Find out what you've done (add one before the deleted line)
svn cleanup --clear lock
svn lock-m "" file--Add lock
SVN unlock file--Files Unlocked
svn propset svn:ignore classes. --Add Ignore directory or file
svn propset-f file svn:ignore. --Add Ignore directories or files, read property values from file files
svn propedit svn:ignore. --Edit ignores directory 6, reposition
svn switch--relocate url_src url_dest --Switch SVN service address
Note:
1. View the properties and values of SVN:
SVN plist
SVN pget Svn:ignore
2, added in the Hosts file: 192.168.1.254 svnserver
SVN's address becomes http://svnserver/svn/, so that if SVN's address changes, only the hosts file needs to be modified.
6,SVN remote set up working directory
Svn-m "" MkDir svn://code.test.sample/test/abc
7,SVN new Label
(1) Simple label
SVN copy https://133.64.152.113:8443/svn/netb3.0/trunk/03Apps/sourceCode/sts \ https://133.64.152.113:8443/svn/ netb3.0/tags/t5.4.0.1 \-M "Self-service terminal feature send beta version"
(2) Complex tags (lots of different versions of subdirectories)
SVN copy my-working-copy https://133.64.152.113:8443/svn/netb3.0/tags/T5.4.0.1
8, create a new code base
If you want to create a new code base, execute the following command on the service product
Window:svnadmin Create F:\svn\project
Text Format for 9,SVN
Query:svn propget svn:mime-type work.txt
Modified:svn propset svn:mime-type text/plain work.txt
----Note--------
Delete the original SVN user name
Rm-fr. Subversion/auth
For commands you can add parameters to modify the user name and password at the time of submission
SVN--username nnn--password PPP commit-m ' filepath
10, based on SVN patching
To generate a diff file:
SVN diff > Xxx.diff
Operating instructions:
I, Generate Patch: (colleague A runs the following command to generate patches)
SVN diff > Aaa.patch
II, Apply Patch: (colleague B runs the following command to apply patch)
Patch–p0 <. /aaa.patch
III, Remove Patch: ( when he review the code and wants to delete the patch, it can run)
Patch–p0-r <. /aaa.patch
SVN Operation Summary