Variable: vc-cvs-stay-local

vc-cvs-stay-local is a customizable variable defined in vc-cvs.el.gz.

Value

only-file

Documentation

Non-nil means use local operations when possible for remote repositories.

This avoids slow queries over the network and instead uses heuristics and past information to determine the current status of a file.

If value is the symbol only-file, vc-dir will connect to the server, but heuristics will be used to determine the status for all other VC operations.

The value can also be a regular expression or list of regular expressions to match against the host name of a repository; then vc-cvs only stays local for hosts that match it. Alternatively, the value can be a list of regular expressions where the first element is the symbol except; then vc-cvs always stays local except for hosts matched by these regular expressions.

This variable was added, or its default value changed, in Emacs 23.1.

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-cvs.el.gz
(defcustom vc-cvs-stay-local 'only-file
  "Non-nil means use local operations when possible for remote repositories.
This avoids slow queries over the network and instead uses heuristics
and past information to determine the current status of a file.

If value is the symbol `only-file', `vc-dir' will connect to the
server, but heuristics will be used to determine the status for
all other VC operations.

The value can also be a regular expression or list of regular
expressions to match against the host name of a repository; then
vc-cvs only stays local for hosts that match it.  Alternatively,
the value can be a list of regular expressions where the first
element is the symbol `except'; then vc-cvs always stays local
except for hosts matched by these regular expressions."
  :type '(choice (const :tag "Always stay local" t)
		 (const :tag "Only for file operations" only-file)
		 (const :tag "Don't stay local" nil)
                 (list :format "\nExamine hostname and %v"
                       :tag "Examine hostname ..."
                       (set :format "%v" :inline t
                            (const :format "%t" :tag "don't" except))
                       (regexp :format " stay local,\n%t: %v"
                               :tag "if it matches")
                       (repeat :format "%v%i\n" :inline t (regexp :tag "or"))))
  :version "23.1")