diff options
| author | André Spiegel | 2000-11-16 16:42:10 +0000 |
|---|---|---|
| committer | André Spiegel | 2000-11-16 16:42:10 +0000 |
| commit | e5effdcc20e1b0d2f58d4f5e63e28197b44ea3eb (patch) | |
| tree | 38a43fa2017833c79e22d7416ab43080c300d9d5 /lisp | |
| parent | d9ed410081d6c60a5a0fa85e45bcf1c49984723a (diff) | |
| download | emacs-e5effdcc20e1b0d2f58d4f5e63e28197b44ea3eb.tar.gz emacs-e5effdcc20e1b0d2f58d4f5e63e28197b44ea3eb.zip | |
(vc-cvs-print-log, vc-cvs-diff): Use asynchronous mode only for remote
repositories.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/vc-cvs.el | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index 25b85c88a34..b78d9c0829f 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.9 2000/11/16 13:38:03 spiegel Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.10 2000/11/16 15:29:40 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -314,7 +314,8 @@ is non-nil." | |||
| 314 | 314 | ||
| 315 | (defun vc-cvs-print-log (file) | 315 | (defun vc-cvs-print-log (file) |
| 316 | "Get change log associated with FILE." | 316 | "Get change log associated with FILE." |
| 317 | (vc-do-command t 'async "cvs" file "log")) | 317 | (vc-do-command t (if (vc-cvs-stay-local-p file) 'async 0) |
| 318 | "cvs" file "log")) | ||
| 318 | 319 | ||
| 319 | (defun vc-cvs-show-log-entry (version) | 320 | (defun vc-cvs-show-log-entry (version) |
| 320 | (when (re-search-forward | 321 | (when (re-search-forward |
| @@ -488,16 +489,19 @@ Inappropriate for CVS" | |||
| 488 | (error "No revisions of %s exist" file) | 489 | (error "No revisions of %s exist" file) |
| 489 | ;; we regard this as "changed". | 490 | ;; we regard this as "changed". |
| 490 | ;; diff it against /dev/null. | 491 | ;; diff it against /dev/null. |
| 491 | (apply 'vc-do-command t | 492 | (apply 'vc-do-command t |
| 492 | 'async "diff" file | 493 | 1 "diff" file |
| 493 | (append diff-switches-list '("/dev/null")))) | 494 | (append diff-switches-list '("/dev/null")))) |
| 494 | (apply 'vc-do-command t | 495 | (setq status |
| 495 | 'async "cvs" file "diff" | 496 | (apply 'vc-do-command t |
| 496 | (and oldvers (concat "-r" oldvers)) | 497 | (if (vc-cvs-stay-local-p file) 'async 1) |
| 497 | (and newvers (concat "-r" newvers)) | 498 | "cvs" file "diff" |
| 498 | diff-switches-list)) | 499 | (and oldvers (concat "-r" oldvers)) |
| 499 | ;; We can't know yet, so we assume there'll be a difference | 500 | (and newvers (concat "-r" newvers)) |
| 500 | 1)) | 501 | diff-switches-list)) |
| 502 | (if (vc-cvs-stay-local-p file) | ||
| 503 | 1 ;; async diff, pessimistic assumption | ||
| 504 | status)))) | ||
| 501 | 505 | ||
| 502 | (defun vc-cvs-latest-on-branch-p (file) | 506 | (defun vc-cvs-latest-on-branch-p (file) |
| 503 | "Return t iff current workfile version of FILE is the latest on its branch." | 507 | "Return t iff current workfile version of FILE is the latest on its branch." |