pavement

Subversion

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m
(svnup)
Line 37: Line 37:
 
This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type:
 
This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type:
 
  # man svnup.conf
 
  # man svnup.conf
 +
 +
===Updating===
 +
To update via svnup, use the svnup command with the tag in parenthesis described in the conf file:
 +
# svnup release
 +
or
 +
# svnup ports
 +
 +
==References==
 +
* FreeBSD.org
 +
 +
[[Category:Ports and Packages]]
 +
[[Category:Configuring FreeBSD]]
 +
[[Category:Important Config Files]]

Revision as of 10:10, 21 December 2014

Here is how to configure and run programs that use subversion, mainly to update FreeBSD source files.

Contents

svnup

Unfortunately, subversion control doesn't come with the base system, but there is a convenient, dependency-less port called svnup.

# pkg install svnup
# man svnup

svnup.conf

The configuration file for svnup.conf is at /usr/local/etc/svnup.conf, and these set options can be overrode on the command line. Here is an example of the configuration file:

# $FreeBSD$
#
# Default configuration options for svnup.conf.
#
[defaults]
work_directory=/var/tmp/svnup
#host=svn.freebsd.org
#host=svn0.us-west.freebsd.org
#host=svn0.us-east.freebsd.org
#host=svn0.eu.freebsd.org
protocol=https
verbosity=1
trim_tree=0
extra_files=0
#repository_base=
#
[release]
branch=base/releng/10.1
target=/usr/src
#
[ports]
branch=ports/head
target=/usr/ports

This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type:

# man svnup.conf

Updating

To update via svnup, use the svnup command with the tag in parenthesis described in the conf file:

# svnup release

or

# svnup ports

References

  • FreeBSD.org
Personal tools