diff options
| -rw-r--r-- | lisp/vc-mcvs.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el index e72287c417b..d7123e15fa4 100644 --- a/lisp/vc-mcvs.el +++ b/lisp/vc-mcvs.el | |||
| @@ -150,10 +150,11 @@ of a repository; then VC only stays local for hosts that match it." | |||
| 150 | root)))) | 150 | root)))) |
| 151 | 151 | ||
| 152 | (defun vc-mcvs-read (file) | 152 | (defun vc-mcvs-read (file) |
| 153 | (with-temp-buffer | 153 | (if (file-readable-p file) |
| 154 | (insert-file-contents file) | 154 | (with-temp-buffer |
| 155 | (goto-char (point-min)) | 155 | (insert-file-contents file) |
| 156 | (read (current-buffer)))) | 156 | (goto-char (point-min)) |
| 157 | (read (current-buffer))))) | ||
| 157 | 158 | ||
| 158 | (defun vc-mcvs-map-file (dir file) | 159 | (defun vc-mcvs-map-file (dir file) |
| 159 | (let ((map (vc-mcvs-read (expand-file-name "MCVS/MAP" dir))) | 160 | (let ((map (vc-mcvs-read (expand-file-name "MCVS/MAP" dir))) |
| @@ -485,7 +486,9 @@ The changes are between FIRST-VERSION and SECOND-VERSION." | |||
| 485 | ;; Note: this is NOT a "mcvs diff". | 486 | ;; Note: this is NOT a "mcvs diff". |
| 486 | (apply 'vc-do-command "*vc-diff*" | 487 | (apply 'vc-do-command "*vc-diff*" |
| 487 | 1 "diff" file | 488 | 1 "diff" file |
| 488 | (append diff-switches-list '("/dev/null")))) | 489 | (append diff-switches-list '("/dev/null"))) |
| 490 | ;; Even if it's empty, it's locally modified. | ||
| 491 | 1) | ||
| 489 | (setq status | 492 | (setq status |
| 490 | (apply 'vc-mcvs-command "*vc-diff*" | 493 | (apply 'vc-mcvs-command "*vc-diff*" |
| 491 | (if (and (vc-mcvs-stay-local-p file) | 494 | (if (and (vc-mcvs-stay-local-p file) |