8.2. Method Options In version 1.12.7, CVS added two options to the connection methods: the proxy and proxyport methods that permit a client to connect to a server via an HTTP proxy. In 1.12.11, three other options were added (CVS_RSH, CVS_SERVER, and Redirect). Options are included in the method section of a repository path. The repository path without options is usually something similar to the following: :ext:cvs_server:/var/local/cvs The repository path with an option would look like this: :ext;CVS_RSH=/bin/ssh:cvs_server:/var/local/cvs It's possible to use multiple options in the same repository path. To do this, chain them with semicolons: :ext;CVS_RSH=/bin/ssh;CVS_SERVER=/bin/cvs;Redirect=false:cvs_server:/var/local/cvs | The binaries for cvs and ssh are more likely to be found under /usr or /opt than /bin. I thought that using /usr/local/bin/cvs or /opt/cvs-1.12.13/bin/cvs made the examples awkward. Those are, however, more likely places to find the commands. |
|
The methods are:
CVS_RSH=path This method allows you to declare your rsh replacement command on the command line, instead of as an environment variable. It overrides the CVS_RSH environment variable. Most of the time, this will be ssh. See "The ext and server Access Methods," later in this chapter, for an explanation of the rsh replacement. This option is valid only with the ext method, and was added in 1.12.11.
CVS_SERVER=path This method allows you to declare the server program you wish to use on the command line, instead of as an environment variable. It overrides the CVS_SERVER environment variable. In most cases, neither this nor the CVS_SERVER variable is necessary, but it's useful if you are testing a server that has been compiled with a different configuration from the default server, or are testing an upgrade of the CVS software. This option is valid only with the ext and fork methods, and was added in 1.12.11.
proxy=hostname proxyport=port CVS can connect through an HTTP proxy. The proxy must be using the HTTP protocol, and must be a tunnel that leads to a CVS server. hostname is the name of the proxy, and port is the number of the port to connect to. These options are valid only with the gserver and pserver methods, and were added in 1.12.7.
Redirect=boolean This method determines whether the server you connect to may redirect your request to another server. At present, it is useful only when connecting to a secondary server that may act as a write proxy for a primary server. The boolean value may be on or true to permit redirection; or off or false to prohibit redirection. The default is to permit redirection. This option is valid only with the ext method, and was added in 1.12.11. |