svnserve command line options
svnserve(8) man page found in Subversion 1.8.5 is a bit outdated. For instance, the
--compression option is not mentioned at all. This blog post will surely be outdated in (short) time.
According to the C code found in
subversion/svnserve/svnserve.c, these are the valid command line options recognized by
svnserve from Subversion 1.8.5:
usage: svnserve [-d | -i | -t | -X] [options] Valid options: -d [--daemon] : daemon mode -i [--inetd] : inetd mode -t [--tunnel] : tunnel mode -X [--listen-once] : listen-once mode (useful for debugging) -r [--root] ARG : root of directory to serve -R [--read-only] : force read only, overriding repository config file --config-file ARG : read configuration from file ARG --listen-port ARG : listen port. The default port is 3690. [mode: daemon, listen-once] --listen-host ARG : listen hostname or IP address By default svnserve listens on all addresses. [mode: daemon, listen-once] -6 [--prefer-ipv6] : prefer IPv6 when resolving the listen hostname [IPv4 is preferred by default. Using IPv4 and IPv6 at the same time is not supported in daemon mode. Use inetd mode or tunnel mode if you need this.] -c [--compression] ARG : compression level to use for network transmissions [0 .. no compression, 5 .. default, 9 .. maximum compression] -M [--memory-cache-size] ARG : size of the extra in-memory cache in MB used to minimize redundant operations. Default is 128 for threaded and 16 for non- threaded mode. [used for FSFS repositories only] --cache-txdeltas ARG : enable or disable caching of deltas between older revisions. Default is no. [used for FSFS repositories only] --cache-fulltexts ARG : enable or disable caching of file contents Default is yes. [used for FSFS repositories only] --cache-revprops ARG : enable or disable caching of revision properties. Consult the documentation before activating this. Default is no. [used for FSFS repositories only] --client-speed ARG : Optimize network handling based on the assumption that most clients are connected with a bitrate of ARG Mbit/s. Default is 0 (optimizations disabled). -T [--threads] : use threads instead of fork [mode: daemon] --foreground : run in foreground (useful for debugging) [mode: daemon] --single-thread : handle one connection at a time in the parent process (useful for debugging) --log-file ARG : svnserve log file --pid-file ARG : write server process ID to file ARG [mode: daemon, listen-once] --tunnel-user ARG : tunnel username (default is current uid's name) [mode: tunnel] -h [--help] : display this help --virtual-host : virtual host mode (look for repo in directory of provided hostname) --version : show program version information -q [--quiet] : no progress (only errors) to stderr
Here’s a link to the trunk version of
The above output was generated by this instance of
svnserve, version 1.8.5 (r1542147) compiled Jan 8 2014, 12:51:14 on amd64-portbld-freebsd9.2 Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository back-end (FS) modules are available: * fs_fs : Module for working with a plain file (FSFS) repository. Cyrus SASL authentication is available.