Refill some long/short copyright headers.
[bpt/emacs.git] / lisp / vc / pcvs-defs.el
CommitLineData
5b467bf4
SM
1;;; pcvs-defs.el --- variable definitions for PCL-CVS
2
95df8112 3;; Copyright (C) 1991-2011 Free Software Foundation, Inc.
5b467bf4 4
cc1eecfd 5;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
5b467bf4 6;; Keywords: pcl-cvs
bd78fa1d 7;; Package: pcvs
5b467bf4
SM
8
9;; This file is part of GNU Emacs.
10
eb3fa2cf 11;; GNU Emacs is free software: you can redistribute it and/or modify
5b467bf4 12;; it under the terms of the GNU General Public License as published by
eb3fa2cf
GM
13;; the Free Software Foundation, either version 3 of the License, or
14;; (at your option) any later version.
5b467bf4
SM
15
16;; GNU Emacs is distributed in the hope that it will be useful,
17;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;; GNU General Public License for more details.
20
21;; You should have received a copy of the GNU General Public License
eb3fa2cf 22;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
5b467bf4
SM
23
24;;; Commentary:
25
26
27;;; Code:
28
5b467bf4
SM
29(eval-when-compile (require 'cl))
30(require 'pcvs-util)
31
32;;;; -------------------------------------------------------
33;;;; START OF THINGS TO CHECK WHEN INSTALLING
34
35(defvar cvs-program "cvs"
36 "*Name or full path of the cvs executable.")
37
38(defvar cvs-version
c6ea7612
SM
39 ;; With the divergence of the CVSNT codebase and version numbers, this is
40 ;; not really good any more.
5b467bf4
SM
41 (ignore-errors
42 (with-temp-buffer
6cfbaf46 43 (call-process cvs-program nil t nil "-v")
5b467bf4 44 (goto-char (point-min))
c6ea7612
SM
45 (when (re-search-forward "(CVS\\(NT\\)?) \\([0-9]+\\)\\.\\([0-9]+\\)"
46 nil t)
5b467bf4
SM
47 (cons (string-to-number (match-string 1))
48 (string-to-number (match-string 2))))))
49 "*Version of `cvs' installed on your system.
50It must be in the (MAJOR . MINOR) format.")
51
52;; FIXME: this is only used by cvs-mode-diff-backup
53(defvar cvs-diff-program (or (and (boundp 'diff-command) diff-command) "diff")
54 "*Name or full path of the best diff program you've got.
55NOTE: there are some nasty bugs in the context diff variants of some vendor
56versions, such as the one in SunOS-4.")
57
58;;;; END OF THINGS TO CHECK WHEN INSTALLING
59;;;; --------------------------------------------------------
60
61;;;;
62;;;; User configuration variables:
63;;;;
64;;;; NOTE: these should be set in your ~/.emacs (or site-lisp/default.el) file.
65;;;;
66
67(defgroup pcl-cvs nil
68 "Special support for the CVS versioning system."
f4fbc2ff 69 :version "21.1"
5b467bf4
SM
70 :group 'tools
71 :prefix "cvs-")
72
73;;
74;; cvsrc options
75;;
76
44597808 77(defcustom cvs-cvsrc-file (convert-standard-filename "~/.cvsrc")
5b467bf4
SM
78 "Path to your cvsrc file."
79 :group 'pcl-cvs
80 :type '(file))
81
82(defvar cvs-shared-start 4
83 "Index of the first shared flag.
84If set to 4, for instance, a numeric argument smaller than 4 will
85select a non-shared flag, while a numeric argument greater than 3
86will select a shared-flag.")
87
88(defvar cvs-shared-flags (make-list cvs-shared-start nil)
89 "List of flags whose settings is shared among several commands.")
90
91(defvar cvs-cvsroot nil
92 "*Specifies where the (current) cvs master repository is.
93Overrides the environment variable $CVSROOT by sending \" -d dir\" to
94all CVS commands. This switch is useful if you have multiple CVS
95repositories. It can be set interactively with \\[cvs-change-cvsroot.]
96There is no need to set this if $CVSROOT is set to a correct value.")
97
98(defcustom cvs-auto-remove-handled nil
afc05254 99 "If up-to-date files should be acknowledged automatically.
5b467bf4
SM
100If T, they will be removed from the *cvs* buffer after every command.
101If DELAYED, they will be removed from the *cvs* buffer before every command.
102If STATUS, they will only be removed after a `cvs-mode-status' command.
103Else, they will never be automatically removed from the *cvs* buffer."
104 :group 'pcl-cvs
105 :type '(choice (const nil) (const status) (const delayed) (const t)))
106
107(defcustom cvs-auto-remove-directories 'handled
afc05254 108 "If ALL, directory entries will never be shown.
7980ab49 109If HANDLED, only non-handled directories will be shown.
5b467bf4
SM
110If EMPTY, only non-empty directories will be shown."
111 :group 'pcl-cvs
112 :type '(choice (const :tag "No" nil) (const all) (const handled) (const empty)))
113
114(defcustom cvs-auto-revert t
afc05254 115 "Non-nil if changed files should automatically be reverted."
5b467bf4
SM
116 :group 'pcl-cvs
117 :type '(boolean))
118
119(defcustom cvs-sort-ignore-file t
afc05254 120 "Non-nil if `cvs-mode-ignore' should sort the .cvsignore automatically."
5b467bf4
SM
121 :group 'pcl-cvs
122 :type '(boolean))
123
124(defcustom cvs-force-dir-tag t
afc05254 125 "If non-nil, tagging can only be applied to directories.
5b467bf4
SM
126Tagging should generally be applied a directory at a time, but sometimes it is
127useful to be able to tag a single file. The normal way to do that is to use
128`cvs-mode-force-command' so as to temporarily override the restrictions,"
129 :group 'pcl-cvs
130 :type '(boolean))
131
132(defcustom cvs-default-ignore-marks nil
afc05254 133 "Non-nil if cvs mode commands should ignore any marked files.
5b467bf4
SM
134Normally they run on the files that are marked (with `cvs-mode-mark'),
135or the file under the cursor if no files are marked. If this variable
136is set to a non-nil value they will by default run on the file on the
2c0ec709 137current line. See also `cvs-invert-ignore-marks'"
5b467bf4
SM
138 :group 'pcl-cvs
139 :type '(boolean))
140
17874c4e
JB
141(defvar cvs-diff-ignore-marks t)
142(make-obsolete-variable 'cvs-diff-ignore-marks
d9bb547b
JB
143 'cvs-invert-ignore-marks
144 "21.1")
5b467bf4
SM
145
146(defcustom cvs-invert-ignore-marks
147 (let ((l ()))
148 (unless (equal cvs-diff-ignore-marks cvs-default-ignore-marks)
149 (push "diff" l))
150 (when (and cvs-force-dir-tag (not cvs-default-ignore-marks))
151 (push "tag" l))
152 l)
afc05254 153 "List of cvs commands that invert the default ignore-mark behavior.
5b467bf4
SM
154Commands in this set will use the opposite default from the one set
155in `cvs-default-ignore-marks'."
156 :group 'pcl-cvs
157 :type '(set (const "diff")
158 (const "tag")
159 (const "ignore")))
160
161(defcustom cvs-confirm-removals t
afc05254 162 "Ask for confirmation before removing files.
5b467bf4
SM
163Non-nil means that PCL-CVS will ask confirmation before removing files
164except for files whose content can readily be recovered from the repository.
138e1bd0 165A value of `list' means that the list of files to be deleted will be
5b467bf4
SM
166displayed when asking for confirmation."
167 :group 'pcl-cvs
168 :type '(choice (const list)
169 (const t)
170 (const nil)))
171
172(defcustom cvs-add-default-message nil
afc05254 173 "Default message to use when adding files.
0ff9b955 174If set to nil, `cvs-mode-add' will always prompt for a message."
5b467bf4
SM
175 :group 'pcl-cvs
176 :type '(choice (const :tag "Prompt" nil)
177 (string)))
178
17874c4e
JB
179(defvar cvs-diff-buffer-name "*cvs-diff*")
180(make-obsolete-variable 'cvs-diff-buffer-name
d9bb547b
JB
181 'cvs-buffer-name-alist
182 "21.1")
5b467bf4 183
2c0ec709 184(defcustom cvs-find-file-and-jump nil
5b467bf4
SM
185 "Jump to the modified area when finding a file.
186If non-nil, `cvs-mode-file-file' will place the cursor at the beginning of
187the modified area. If the file is not locally modified, this will obviously
188have no effect."
189 :group 'pcl-cvs
190 :type '(boolean))
191
192(defcustom cvs-buffer-name-alist
193 '(("diff" cvs-diff-buffer-name diff-mode)
194 ("status" "*cvs-info*" cvs-status-mode)
619d6bfc 195 ("tree" "*cvs-info*" cvs-status-mode)
5b467bf4
SM
196 ("message" "*cvs-commit*" nil log-edit)
197 ("log" "*cvs-info*" log-view-mode))
afc05254 198 "Buffer name and mode to be used for each command.
5b467bf4
SM
199This is a list of elements of the form
200
201 (CMD BUFNAME MODE &optional POSTPROC)
202
203CMD is the name of the command.
204BUFNAME is an expression that should evaluate to a string used as
205 a buffer name. It can use the variable CMD if it wants to.
206MODE is the command to use to setup the buffer.
207POSTPROC is a function that should be executed when the command terminates
208
209The CMD used for `cvs-mode-commit' is \"message\". For that special
210 case, POSTPROC is called just after MODE with special arguments."
211 :group 'pcl-cvs
212 :type '(repeat
213 (list (choice (const "diff")
214 (const "status")
215 (const "tree")
216 (const "message")
217 (const "log")
218 (string))
219 (choice (const "*vc-diff*")
220 (const "*cvs-info*")
221 (const "*cvs-commit*")
222 (const (expand-file-name "*cvs-commit*"))
223 (const (format "*cvs-%s*" cmd))
224 (const (expand-file-name (format "*cvs-%s*" cmd)))
225 (sexp :value "my-cvs-info-buffer")
226 (const nil))
227 (choice (function-item diff-mode)
228 (function-item cvs-edit-mode)
229 (function-item cvs-status-mode)
230 function
231 (const nil))
232 (set :inline t
233 (choice (function-item cvs-status-cvstrees)
234 (function-item cvs-status-trees)
235 function)))))
236
237(defvar cvs-buffer-name '(expand-file-name "*cvs*" dir) ;; "*cvs*"
238 "Name of the cvs buffer.
239This expression will be evaluated in an environment where DIR is set to
240the directory name of the cvs buffer.")
241
e5a099ec
SM
242(defvar cvs-temp-buffer-name
243 ;; Was '(expand-file-name " *cvs-tmp*" dir), but that causes them to
244 ;; become non-hidden if uniquification is done `forward'.
245 " *cvs-tmp*"
5b467bf4
SM
246 "*Name of the cvs temporary buffer.
247Output from cvs is placed here for asynchronous commands.")
248
249(defcustom cvs-idiff-imerge-handlers
250 (if (fboundp 'ediff)
251 '(cvs-ediff-diff . cvs-ediff-merge)
252 '(cvs-emerge-diff . cvs-emerge-merge))
afc05254 253 "Pair of functions to be used for resp. diff'ing and merg'ing interactively."
5b467bf4
SM
254 :group 'pcl-cvs
255 :type '(choice (const :tag "Ediff" (cvs-ediff-diff . cvs-ediff-merge))
256 (const :tag "Emerge" (cvs-emerge-diff . cvs-emerge-merge))))
257
5b467bf4
SM
258(defvar cvs-mode-hook nil
259 "Run after `cvs-mode' was setup.")
260
261\f
262;;;;
263;;;; Internal variables, used in the process buffer.
264;;;;
265
266(defvar cvs-postprocess nil
267 "(Buffer local) what to do once the process exits.")
268
269;;;;
270;;;; Internal variables for the *cvs* buffer.
271;;;;
272
273(defcustom cvs-reuse-cvs-buffer 'subdir
274 "When to reuse an existing cvs buffer.
275Alternatives are:
276 CURRENT: just reuse the current buffer if it is a cvs buffer
277 SAMEDIR: reuse any cvs buffer displaying the same directory
278 SUBDIR: or reuse any cvs buffer displaying any sub- or super- directory
279 ALWAYS: reuse any cvs buffer."
280 :group 'pcl-cvs
281 :type '(choice (const always) (const subdir) (const samedir) (const current)))
282
283(defvar cvs-temp-buffer nil
284 "(Buffer local) The temporary buffer associated with this *cvs* buffer.")
285
286(defvar cvs-lock-file nil
287 "Full path to a lock file that CVS is waiting for (or was waiting for).
288This variable is buffer local and only used in the *cvs* buffer.")
289
290(defvar cvs-lock-file-regexp "^#cvs\\.\\([trw]fl\\.[-.a-z0-9]+\\|lock\\)\\'"
291 "Regexp matching the possible names of locks in the CVS repository.")
292
293(defconst cvs-cursor-column 22
294 "Column to position cursor in in `cvs-mode'.")
295
296;;;;
297;;;; Global internal variables
298;;;;
299
5b467bf4
SM
300(defconst cvs-vendor-branch "1.1.1"
301 "The default branch used by CVS for vendor code.")
302
5b467bf4 303(easy-mmode-defmap cvs-mode-diff-map
4f5a9d2b
SM
304 '(("E" "imerge" . cvs-mode-imerge)
305 ("=" . cvs-mode-diff)
306 ("e" "idiff" . cvs-mode-idiff)
307 ("2" "other" . cvs-mode-idiff-other)
308 ("d" "diff" . cvs-mode-diff)
309 ("b" "backup" . cvs-mode-diff-backup)
310 ("h" "head" . cvs-mode-diff-head)
a4bdfaf9 311 ("r" "repository" . cvs-mode-diff-repository)
34ffe043 312 ("y" "yesterday" . cvs-mode-diff-yesterday)
4f5a9d2b
SM
313 ("v" "vendor" . cvs-mode-diff-vendor))
314 "Keymap for diff-related operations in `cvs-mode'."
315 :name "Diff")
ef55aa6c 316;; This is necessary to allow correct handling of \\[cvs-mode-diff-map]
2c0ec709
SM
317;; in substitute-command-keys.
318(fset 'cvs-mode-diff-map cvs-mode-diff-map)
5b467bf4
SM
319
320(easy-mmode-defmap cvs-mode-map
321 ;;(define-prefix-command 'cvs-mode-map-diff-prefix)
322 ;;(define-prefix-command 'cvs-mode-map-control-c-prefix)
5caeb2a5 323 '(;; various
fa443ddf 324 ;; (undo . cvs-mode-undo)
5b467bf4
SM
325 ("?" . cvs-help)
326 ("h" . cvs-help)
327 ("q" . cvs-bury-buffer)
ef55aa6c 328 ("z" . kill-this-buffer)
5b467bf4 329 ("F" . cvs-mode-set-flags)
213a58ae 330 ;; ("\M-f" . cvs-mode-force-command)
7980ab49 331 ("!" . cvs-mode-force-command)
5b467bf4
SM
332 ("\C-c\C-c" . cvs-mode-kill-process)
333 ;; marking
334 ("m" . cvs-mode-mark)
335 ("M" . cvs-mode-mark-all-files)
28037ecf 336 ("S" . cvs-mode-mark-on-state)
5b467bf4
SM
337 ("u" . cvs-mode-unmark)
338 ("\C-?". cvs-mode-unmark-up)
339 ("%" . cvs-mode-mark-matching-files)
340 ("T" . cvs-mode-toggle-marks)
341 ("\M-\C-?" . cvs-mode-unmark-all-files)
342 ;; navigation keys
343 (" " . cvs-mode-next-line)
344 ("n" . cvs-mode-next-line)
345 ("p" . cvs-mode-previous-line)
25edda53
DN
346 ("\t" . cvs-mode-next-line)
347 ([backtab] . cvs-mode-previous-line)
5b467bf4
SM
348 ;; M- keys are usually those that operate on modules
349 ;;("\M-C". cvs-mode-rcs2log) ; i.e. "Create a ChangeLog"
350 ;;("\M-t". cvs-rtag)
351 ;;("\M-l". cvs-rlog)
352 ("\M-c". cvs-checkout)
353 ("\M-e". cvs-examine)
354 ("g" . cvs-mode-revert-buffer)
355 ("\M-u". cvs-update)
356 ("\M-s". cvs-status)
357 ;; diff commands
358 ("=" . cvs-mode-diff)
2c0ec709 359 ("d" . cvs-mode-diff-map)
5b467bf4 360 ;; keys that operate on individual files
02f7be41 361 ("\C-k" . cvs-mode-acknowledge)
5b467bf4
SM
362 ("A" . cvs-mode-add-change-log-entry-other-window)
363 ;;("B" . cvs-mode-byte-compile-files)
364 ("C" . cvs-mode-commit-setup)
365 ("O" . cvs-mode-update)
366 ("U" . cvs-mode-undo)
367 ("I" . cvs-mode-insert)
368 ("a" . cvs-mode-add)
369 ("b" . cvs-set-branch-prefix)
370 ("B" . cvs-set-secondary-branch-prefix)
371 ("c" . cvs-mode-commit)
372 ("e" . cvs-mode-examine)
373 ("f" . cvs-mode-find-file)
02f7be41 374 ("\C-m" . cvs-mode-find-file)
5b467bf4
SM
375 ("i" . cvs-mode-ignore)
376 ("l" . cvs-mode-log)
377 ("o" . cvs-mode-find-file-other-window)
378 ("r" . cvs-mode-remove)
379 ("s" . cvs-mode-status)
380 ("t" . cvs-mode-tag)
9d2475ef 381 ("v" . cvs-mode-view-file)
5b467bf4
SM
382 ("x" . cvs-mode-remove-handled)
383 ;; cvstree bindings
384 ("+" . cvs-mode-tree)
385 ;; mouse bindings
2c0ec709 386 ([mouse-2] . cvs-mode-find-file)
d086b1a2 387 ([follow-link] . (lambda (pos)
94d5c876 388 (if (eq (get-char-property pos 'face) 'cvs-filename) t)))
5b467bf4 389 ([(down-mouse-3)] . cvs-menu)
28037ecf
SM
390 ;; dired-like bindings
391 ("\C-o" . cvs-mode-display-file)
5b467bf4
SM
392 ;; Emacs-21 toolbar
393 ;;([tool-bar item1] . (menu-item "Examine" cvs-examine :image (image :file "/usr/share/icons/xpaint.xpm" :type xpm)))
394 ;;([tool-bar item2] . (menu-item "Update" cvs-update :image (image :file "/usr/share/icons/mail1.xpm" :type xpm)))
395 )
396 "Keymap for `cvs-mode'."
5caeb2a5
GM
397 :dense t
398 :suppress t)
5b467bf4
SM
399
400(fset 'cvs-mode-map cvs-mode-map)
401
8e41e2e5
SM
402(easy-menu-define cvs-menu cvs-mode-map "Menu used in `cvs-mode'."
403 '("CVS"
10edbb1a
RS
404 ["Open file" cvs-mode-find-file t]
405 ["Open in other window" cvs-mode-find-file-other-window t]
28037ecf 406 ["Display in other window" cvs-mode-display-file t]
8e41e2e5
SM
407 ["Interactive merge" cvs-mode-imerge t]
408 ("View diff"
409 ["Interactive diff" cvs-mode-idiff t]
410 ["Current diff" cvs-mode-diff t]
411 ["Diff with head" cvs-mode-diff-head t]
412 ["Diff with vendor" cvs-mode-diff-vendor t]
10edbb1a 413 ["Diff against yesterday" cvs-mode-diff-yesterday t]
8e41e2e5
SM
414 ["Diff with backup" cvs-mode-diff-backup t])
415 ["View log" cvs-mode-log t]
416 ["View status" cvs-mode-status t]
417 ["View tag tree" cvs-mode-tree t]
418 "----"
419 ["Insert" cvs-mode-insert]
420 ["Update" cvs-mode-update (cvs-enabledp 'update)]
421 ["Re-examine" cvs-mode-examine t]
422 ["Commit" cvs-mode-commit-setup (cvs-enabledp 'commit)]
5fe50228 423 ["Tag" cvs-mode-tag (cvs-enabledp (when cvs-force-dir-tag 'tag))]
8e41e2e5
SM
424 ["Undo changes" cvs-mode-undo (cvs-enabledp 'undo)]
425 ["Add" cvs-mode-add (cvs-enabledp 'add)]
426 ["Remove" cvs-mode-remove (cvs-enabledp 'remove)]
427 ["Ignore" cvs-mode-ignore (cvs-enabledp 'ignore)]
428 ["Add ChangeLog" cvs-mode-add-change-log-entry-other-window t]
429 "----"
c224c19a 430 ["Mark" cvs-mode-mark t]
8e41e2e5 431 ["Mark all" cvs-mode-mark-all-files t]
28037ecf
SM
432 ["Mark by regexp..." cvs-mode-mark-matching-files t]
433 ["Mark by state..." cvs-mode-mark-on-state t]
c224c19a 434 ["Unmark" cvs-mode-unmark t]
8e41e2e5
SM
435 ["Unmark all" cvs-mode-unmark-all-files t]
436 ["Hide handled" cvs-mode-remove-handled t]
437 "----"
10edbb1a
RS
438 ["PCL-CVS Manual" (lambda () (interactive)
439 (info "(pcl-cvs)Top")) t]
440 "----"
8e41e2e5 441 ["Quit" cvs-mode-quit t]))
5b467bf4 442
ef55aa6c 443;;;;
5b467bf4 444;;;; CVS-Minor mode
ef55aa6c 445;;;;
5b467bf4
SM
446
447(defcustom cvs-minor-mode-prefix "\C-xc"
448 "Prefix key for the `cvs-mode' bindings in `cvs-minor-mode'."
449 :group 'pcl-cvs)
450
451(easy-mmode-defmap cvs-minor-mode-map
213a58ae
SM
452 `((,cvs-minor-mode-prefix . cvs-mode-map)
453 ("e" . (menu-item nil cvs-mode-edit-log
454 :filter (lambda (x) (if (derived-mode-p 'log-view-mode) x)))))
4f5a9d2b 455 "Keymap for `cvs-minor-mode', used in buffers related to PCL-CVS.")
5b467bf4
SM
456
457(defvar cvs-buffer nil
458 "(Buffer local) The *cvs* buffer associated with this buffer.")
459(put 'cvs-buffer 'permanent-local t)
460;;(make-variable-buffer-local 'cvs-buffer)
461
462(defvar cvs-minor-wrap-function nil
463 "Function to call when switching to the *cvs* buffer.
464Takes two arguments:
465- a *cvs* buffer.
466- a zero-arg function which is guaranteed not to switch buffer.
467It is expected to call the function.")
468;;(make-variable-buffer-local 'cvs-minor-wrap-function)
469
470(defvar cvs-minor-current-files)
471;;"Current files in a `cvs-minor-mode' buffer."
472;; This should stay `void' because we want to be able to tell the difference
473;; between an empty list and no list at all.
474
475(defconst cvs-pcl-cvs-dirchange-re "^pcl-cvs: descending directory \\(.*\\)$")
476
ef55aa6c 477;;;;
cb3430a1 478;;;; autoload the global menu
ef55aa6c 479;;;;
5b467bf4 480
cb3430a1
SM
481;;;###autoload
482(defvar cvs-global-menu
483 (let ((m (make-sparse-keymap "PCL-CVS")))
484 (define-key m [status]
8f43cbf3
DN
485 `(menu-item ,(purecopy "Directory Status") cvs-status
486 :help ,(purecopy "A more verbose status of a workarea")))
cb3430a1 487 (define-key m [checkout]
8f43cbf3
DN
488 `(menu-item ,(purecopy "Checkout Module") cvs-checkout
489 :help ,(purecopy "Check out a module from the repository")))
cb3430a1 490 (define-key m [update]
8f43cbf3
DN
491 `(menu-item ,(purecopy "Update Directory") cvs-update
492 :help ,(purecopy "Fetch updates from the repository")))
cb3430a1 493 (define-key m [examine]
8f43cbf3
DN
494 `(menu-item ,(purecopy "Examine Directory") cvs-examine
495 :help ,(purecopy "Examine the current state of a workarea")))
648a3c0c 496 (fset 'cvs-global-menu m)))
5b467bf4
SM
497
498
499;; cvs-1.10 and above can take file arguments in other directories
500;; while others need to be executed once per directory
501(defvar cvs-execute-single-dir
c6ea7612
SM
502 (if (or (null cvs-version)
503 (or (>= (cdr cvs-version) 10) (> (car cvs-version) 1)))
504 ;; Supposedly some recent versions of CVS output some directory info
505 ;; as they recurse downthe tree, but it's not good enough in the case
506 ;; where we run "cvs status foo bar/foo".
5b467bf4
SM
507 '("status")
508 t)
509 "Whether cvs commands should be executed a directory at a time.
510If a list, specifies for which commands the single-dir mode should be used.
511If T, single-dir mode should be used for all operations.
512
513CVS versions before 1.10 did not allow passing them arguments in different
514directories, so pcl-cvs checks what version you're using to determine
515whether to use the new feature or not.
516Sadly, even with a new cvs executable, if you connect to an older cvs server
517\(typically a cvs-1.9 on the server), the old restriction applies. In such
518a case the sanity check made by pcl-cvs fails and you will have to manually
0ff9b955 519set this variable to t (until the cvs server is upgraded).
5b467bf4 520When the above problem occurs, pcl-cvs should (hopefully) catch cvs' error
c6ea7612 521message and replace it with a message telling you to change this variable.")
5b467bf4
SM
522
523;;
524(provide 'pcvs-defs)
525
3afbc435 526;;; pcvs-defs.el ends here