Update FreeBSD source tree using subversion SVN
本帖最后由 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.ISO8859-1/articles/committers-guide/subversion-primer.html
More:http://mebsd.com/configure-freebsd-servers/update-freebsd-source-tree-using-subversion-svn.html 自从有了csup以后,就一直用它了,不需要再乱折腾。 lsstarboy 发表于 2012-09-10 10:49 static/image/common/back.gif
自从有了csup以后,就一直用它了,不需要再乱折腾。
These days subversion svn has started to replace cvs as the version control system for the FreeBSD source tree. 楼上说的太准了,时间都跟FreeBSD官方发布的消息一致!!!
这种事在FreeBSD上很少发生,以后还是改用Subversion和portsnap吧,坚持扔掉csup。 http://www.freebsd.org/news/2012-compromise.html 几天没用freebsd更新方式都变了 :sleepy: 等待SVNUP进入基础系统。
页:
[1]