aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-cvs.el10
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 @@
12008-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
12008-10-08 Chong Yidong <cyd@stupidchicken.com> 62008-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.
130This avoids slow queries over the network and instead uses heuristics
131and 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.
130Format is according to `format-time-string'. Only used if 138Format 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