diff options
| author | André Spiegel | 2003-04-23 13:14:16 +0000 |
|---|---|---|
| committer | André Spiegel | 2003-04-23 13:14:16 +0000 |
| commit | f354c160dad0cca49d7d54d41bcb1ba8f5eadc3b (patch) | |
| tree | b4b83db6999676255fd4b5cae7f04b4e5d5001c0 | |
| parent | 777081fed2f6b728ef8278af7caa6470970e5bd3 (diff) | |
| download | emacs-f354c160dad0cca49d7d54d41bcb1ba8f5eadc3b.tar.gz emacs-f354c160dad0cca49d7d54d41bcb1ba8f5eadc3b.zip | |
(vc-cvs-stay-local): Keep the old default. Simplify doc string.
| -rw-r--r-- | lisp/vc-cvs.el | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index ab69de81d77..474d4ca7330 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc-cvs.el,v 1.54 2003/04/19 22:40:18 monnier Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.55 2003/04/23 12:49:25 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -81,18 +81,17 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 81 | :version "21.1" | 81 | :version "21.1" |
| 82 | :group 'vc) | 82 | :group 'vc) |
| 83 | 83 | ||
| 84 | (defcustom vc-cvs-stay-local '(except "^\\(localhost\\)$") | 84 | (defcustom vc-cvs-stay-local t |
| 85 | "*Non-nil means use local operations when possible for remote repositories. | 85 | "*Non-nil means use local operations when possible for remote repositories. |
| 86 | This avoids slow queries over the network and instead uses heuristics | 86 | This avoids slow queries over the network and instead uses heuristics |
| 87 | and past information to determine the current status of a file. | 87 | and past information to determine the current status of a file. |
| 88 | |||
| 88 | The value can also be a regular expression or list of regular | 89 | The value can also be a regular expression or list of regular |
| 89 | expressions to match against the host name of a repository; then VC | 90 | expressions to match against the host name of a repository; then VC |
| 90 | only stays local for hosts that match it. | 91 | only stays local for hosts that match it. Alternatively, the value |
| 91 | This is useful in a setup, where most CVS servers should be contacted | 92 | can be a list of regular expressions where the first element is the |
| 92 | directly, and only a few CVS servers cannot be reached easily. | 93 | symbol `except'; then VC always stays local except for hosts matched |
| 93 | For the opposite scenario, when only a few CVS servers are to be | 94 | by these regular expressions." |
| 94 | queried directly, a list of regular expressions can be specified, | ||
| 95 | whose first element is the symbol `except'." | ||
| 96 | :type '(choice (const :tag "Always stay local" t) | 95 | :type '(choice (const :tag "Always stay local" t) |
| 97 | (const :tag "Don't stay local" nil) | 96 | (const :tag "Don't stay local" nil) |
| 98 | (list :format "\nExamine hostname and %v" :tag "Examine hostname ..." | 97 | (list :format "\nExamine hostname and %v" :tag "Examine hostname ..." |
| @@ -736,9 +735,9 @@ See `vc-cvs-stay-local'." | |||
| 736 | (vc-file-setprop | 735 | (vc-file-setprop |
| 737 | dirname 'vc-cvs-stay-local-p | 736 | dirname 'vc-cvs-stay-local-p |
| 738 | (when (file-readable-p rootname) | 737 | (when (file-readable-p rootname) |
| 739 | (with-temp-buffer | 738 | (with-temp-buffer |
| 740 | (vc-insert-file rootname) | 739 | (vc-insert-file rootname) |
| 741 | (goto-char (point-min)) | 740 | (goto-char (point-min)) |
| 742 | (looking-at "\\([^\n]*\\)") | 741 | (looking-at "\\([^\n]*\\)") |
| 743 | (let* ((cvs-root-members | 742 | (let* ((cvs-root-members |
| 744 | (vc-cvs-parse-root (match-string 1))) | 743 | (vc-cvs-parse-root (match-string 1))) |
| @@ -763,13 +762,13 @@ See `vc-cvs-stay-local'." | |||
| 763 | (cdr vc-cvs-stay-local)) | 762 | (cdr vc-cvs-stay-local)) |
| 764 | "\\|")))) | 763 | "\\|")))) |
| 765 | (if (not rx) | 764 | (if (not rx) |
| 766 | 'yes | 765 | 'yes |
| 767 | (if (not (string-match rx hostname)) | 766 | (if (not (string-match rx hostname)) |
| 768 | (setq stay-local (not stay-local))) | 767 | (setq stay-local (not stay-local))) |
| 769 | (if stay-local | 768 | (if stay-local |
| 770 | 'yes | 769 | 'yes |
| 771 | 'no)))))))))))) | 770 | 'no)))))))))))) |
| 772 | (if (eq prop 'yes) t nil)))) | 771 | (if (eq prop 'yes) t nil)))) |
| 773 | 772 | ||
| 774 | (defun vc-cvs-parse-root ( root ) | 773 | (defun vc-cvs-parse-root ( root ) |
| 775 | "Split CVS ROOT specification string into a list of fields. | 774 | "Split CVS ROOT specification string into a list of fields. |