Annex: Declarations in FCM central/user configuration file

Please note that setting labels in both the central and the user configuration files are case insensitive.

N.B. almost all settings in the Fcm::Config module can be modified using the central/user configuration file. However, most users should only ever need to use the following.

SET::URL::<pck>
SET::REPOS::<pck>

This declares a URL keyword for the package <pck>. The value of the declaration must be a valid Subversion <URL>. Once declared, the URL keyword <pck> will be associated with the specified URL. In subsequent invocations of the fcm command, the following expansion may take place:

Example:

# Associate "var" with "svn://server/VAR_svn/var"
set::url::var  svn://server/VAR_svn/var

# "fcm:var" is now the same as "svn://server/VAR_svn/var"
SET::REVISION::<pck>::<keyword>

This declares <keyword> to be the revision number for the package <pck>. The <keyword> string can contain any characters except spaces. It must not contain only digits (as digits are treated as revision numbers). It must not be the Subversion revision keywords HEAD, BASE, COMMITTED and PREV. It cannot begin and end with a pair of curly brackets (as this will be parsed as a revision date). The package <pck> must be associated with a URL using the SET::URL::<pck> declaration described above before this declaration can make sense. Once defined, <keyword> can be used anywhere in place the defined revision number.

Example:

set::revision::var::v22.0  8410

# E.g. "fcm list -r v22.0 fcm:var" is now the same as
#      "fcm list -r 8410 fcm:var".
SET::URL_BROWSER_MAPPING_DEFAULT::<key>

These declarations are used to change the global default for mapping a version control system URL to its corresponding web browser URL. <key> can be LOCATION_COMPONENT_PATTERN, BROWSER_URL_TEMPLATE or BROWSER_REV_TEMPLATE.

Example:

set::url_browser_mapping_default::location_component_pattern ^//([^/]+)/(.*)$
set::url_browser_mapping_default::browser_url_template http://{1}/intertrac/source:{2}{3}
set::url_browser_mapping_default::browser_rev_template @{1}
SET::URL_BROWSER_MAPPING::<pck>::<key>

Similar to SET::URL_BROWSER_MAPPING_DEFAULT::<key>, but settings only apply to the specified <pck>.

Example:

set::url_browser_mapping::var::location_component_pattern ^//([^/]+)/(.*)$
set::url_browser_mapping::var::browser_url_template http://{1}/intertrac/source:{2}{3}
set::url_browser_mapping::var::browser_rev_template @{1}
SET::MISC::WEB_BROWSER

This declares a default web browser that can be used by some FCM commands to browse files and documents online. The default is firefox.

Example:

# Use Netscape instead of Firefox
set::misc::web_browser  netscape
INC

This declares the name of a file containing user configuration. The lines in the declared file will be included inline.

Example:

inc  ~fred/etc/fcm.cfg
# ... and then your changes ...