diff options
| author | Dan Nicolaescu | 2008-10-09 04:52:28 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-10-09 04:52:28 +0000 |
| commit | 264175a802f7a4e4917d2a81dd7a98789c5dffb6 (patch) | |
| tree | 7309ef0b2eccfe7d4248615a14373e38b9645424 | |
| parent | f3d295514c7d0e320a8b3b407369158fe0790d7f (diff) | |
| download | emacs-264175a802f7a4e4917d2a81dd7a98789c5dffb6.tar.gz emacs-264175a802f7a4e4917d2a81dd7a98789c5dffb6.zip | |
(vc-cvs-dir-stay-local): New variable.
(vc-cvs-dir-status): Use it.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-cvs.el | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b9cc231498c..102713618ec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-10-09 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-cvs.el (vc-cvs-dir-stay-local): New variable. | ||
| 4 | (vc-cvs-dir-status): Use it. | ||
| 5 | |||
| 1 | 2008-10-08 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-10-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * json.el (json-skip-whitespace): Fix last change. | 8 | * json.el (json-skip-whitespace): Fix last change. |
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index 4913a23440d..bd6e755d128 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -125,6 +125,14 @@ by these regular expressions." | |||
| 125 | :version "21.1" | 125 | :version "21.1" |
| 126 | :group 'vc) | 126 | :group 'vc) |
| 127 | 127 | ||
| 128 | (defcustom vc-cvs-dir-stay-local nil | ||
| 129 | "*Non-nil means use local operations when possible for remote repositories. | ||
| 130 | This avoids slow queries over the network and instead uses heuristics | ||
| 131 | and past information to determine the current status of files for `vc-dir'." | ||
| 132 | :type 'boolean | ||
| 133 | :version "23.1" | ||
| 134 | :group 'vc) | ||
| 135 | |||
| 128 | (defcustom vc-cvs-sticky-date-format-string "%c" | 136 | (defcustom vc-cvs-sticky-date-format-string "%c" |
| 129 | "*Format string for mode-line display of sticky date. | 137 | "*Format string for mode-line display of sticky date. |
| 130 | Format is according to `format-time-string'. Only used if | 138 | Format is according to `format-time-string'. Only used if |
| @@ -953,7 +961,7 @@ state." | |||
| 953 | (defun vc-cvs-dir-status (dir update-function) | 961 | (defun vc-cvs-dir-status (dir update-function) |
| 954 | "Create a list of conses (file . state) for DIR." | 962 | "Create a list of conses (file . state) for DIR." |
| 955 | ;; FIXME check all files in DIR instead? | 963 | ;; FIXME check all files in DIR instead? |
| 956 | (if (vc-stay-local-p dir) | 964 | (if vc-cvs-dir-stay-local |
| 957 | (vc-cvs-dir-status-heuristic dir update-function) | 965 | (vc-cvs-dir-status-heuristic dir update-function) |
| 958 | (vc-cvs-command (current-buffer) 'async dir "-f" "status") | 966 | (vc-cvs-command (current-buffer) 'async dir "-f" "status") |
| 959 | ;; Alternative implementation: use the "update" command instead of | 967 | ;; Alternative implementation: use the "update" command instead of |