- 论坛徽章:
- 13
|
本帖最后由 ulovko 于 2012-09-12 21:23 编辑
- # cd /usr/ports/devel/subversion && make install clean
- # rehash
- # svn help
- Available subcommands:
- add
- blame (praise, annotate, ann)
- cat
- changelist (cl)
- checkout (co)
- cleanup
- commit (ci)
- copy (cp)
- delete (del, remove, rm)
- diff (di)
- export
- help (?, h)
- import
- info
- list (ls)
- lock
- log
- merge
- mergeinfo
- mkdir
- move (mv, rename, ren)
- patch
- propdel (pdel, pd)
- propedit (pedit, pe)
- propget (pget, pg)
- proplist (plist, pl)
- propset (pset, ps)
- relocate
- resolve
- resolved
- revert
- status (stat, st)
- switch (sw)
- unlock
- update (up)
- upgrade
- Subversion is a tool for version control.
复制代码- /stable/n which corresponds to RELENG_n.
- /releng/n.n which corresponds to RELENG_n_n.
- /release/n.n.n which corresponds to RELENG_n_n_n_RELEASE.
- /vendor* is the vendor branch import work area. This directory itself does not contain branches, however its subdirectories do. This contrasts with the stable, releng and release directories.
- /projects and /user feature a branch work area, like in Perforce. As above, the /user directory does not contain branches itself.
见下图:
- # svn co svn://svn.freebsd.org/base/release/9.0.0 /usr/src
- # svn up /usr/src
- # svn info /usr/src
- # svn co svn://svn.freebsd.org/doc/head /usr/doc
- # svn co svn://svn.freebsd.org/ports/head /usr/ports
- # svn up /usr/doc
- # svn up /usr/ports
复制代码
http://svnweb.freebsd.org/
More:
- 3.2.1 Direct Checkout
- The first is to check out directly from the main repository. For the src tree, use:
- % svn checkout svn+ssh://svn.freebsd.org/base/head /usr/src
- For the doc tree, use:
- % svn checkout svn+ssh://svn.freebsd.org/doc/head /usr/doc
- For the ports tree, use:
- % svn checkout svn+ssh://svn.freebsd.org/ports/head /usr/ports
复制代码 ===============================================================================
- 3.3.3 Anonymous Checkout
- It is possible to anonymously check out the FreeBSD repository with Subversion. This will give access to a read-only tree that can be updated, but not committed to. To do this, use one of the following commands:
- % svn co svn://svn.freebsd.org/base/head /usr/src
- % svn co http://svn.freebsd.org/base/head /usr/src
- 3.3.4 Updating the Tree
- To update a working copy to either the latest revision, or a specific revision:
- % svn update
- % svn update -r12345
- 3.3.5 Status
- To view the local changes that have been made to the working copy:
- % svn status
- CVS has no direct equivalent of this command. The nearest would be cvs up -N which shows local changes and files that are out-of-date. Doing this in SVN is possible too, however:
- % svn status --show-updates
复制代码 FROM: http://www.freebsd.org/doc/en_US ... version-primer.html
More: http://mebsd.com/configure-freeb ... subversion-svn.html |
|