diff options
| author | Richard M. Stallman | 1995-07-07 13:24:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-07 13:24:31 +0000 |
| commit | e11a39dfe9deef46bc4fe3fc8103dd27a3dbf1e4 (patch) | |
| tree | bd838a34e68be8955f7b4e89acb33ce89a79f876 | |
| parent | 9b23a6c733b0449d2e1a495a6a486310686fefdc (diff) | |
| download | emacs-e11a39dfe9deef46bc4fe3fc8103dd27a3dbf1e4.tar.gz emacs-e11a39dfe9deef46bc4fe3fc8103dd27a3dbf1e4.zip | |
(vc-fetch-master-properties): Better error
message in case the "cvs status" command fails.
| -rw-r--r-- | lisp/vc-hooks.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 1ae9ecfe642..65b2599e2c4 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -280,15 +280,20 @@ value of this flag.") | |||
| 280 | ;; command, because that would change its default directory | 280 | ;; command, because that would change its default directory |
| 281 | (save-excursion (set-buffer (get-buffer-create "*vc-info*")) | 281 | (save-excursion (set-buffer (get-buffer-create "*vc-info*")) |
| 282 | (erase-buffer)) | 282 | (erase-buffer)) |
| 283 | (let ((exec-path (append vc-path exec-path)) | 283 | (let ((exec-path (append vc-path exec-path)) exec-status |
| 284 | ;; Add vc-path to PATH for the execution of this command. | 284 | ;; Add vc-path to PATH for the execution of this command. |
| 285 | (process-environment | 285 | (process-environment |
| 286 | (cons (concat "PATH=" (getenv "PATH") | 286 | (cons (concat "PATH=" (getenv "PATH") |
| 287 | path-separator | 287 | path-separator |
| 288 | (mapconcat 'identity vc-path path-separator)) | 288 | (mapconcat 'identity vc-path path-separator)) |
| 289 | process-environment))) | 289 | process-environment))) |
| 290 | (apply 'call-process "cvs" nil "*vc-info*" nil | 290 | (setq exec-status |
| 291 | (list "status" file))) | 291 | (apply 'call-process "cvs" nil "*vc-info*" nil |
| 292 | (list "status" file))) | ||
| 293 | (cond ((> exec-status 0) | ||
| 294 | (switch-to-buffer (get-file-buffer file)) | ||
| 295 | (display-buffer "*vc-info*") | ||
| 296 | (error "Couldn't find version control information")))) | ||
| 292 | (set-buffer (get-buffer "*vc-info*")) | 297 | (set-buffer (get-buffer "*vc-info*")) |
| 293 | (set-buffer-modified-p nil) | 298 | (set-buffer-modified-p nil) |
| 294 | (auto-save-mode nil) | 299 | (auto-save-mode nil) |