diff options
| -rw-r--r-- | lisp/vc-cvs.el | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index 8dbcaf1b723..fbe6b9a2b33 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.5 2000/10/04 09:51:15 spiegel Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.6 2000/10/22 15:31:11 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -519,14 +519,21 @@ Inappropriate for CVS" | |||
| 519 | "ci" (if rev (concat "-r" rev)) | 519 | "ci" (if rev (concat "-r" rev)) |
| 520 | (concat "-m" comment) | 520 | (concat "-m" comment) |
| 521 | switches)) | 521 | switches)) |
| 522 | ;; determine and store the new workfile version | ||
| 523 | (set-buffer "*vc*") | 522 | (set-buffer "*vc*") |
| 524 | (goto-char (point-min)) | 523 | (goto-char (point-min)) |
| 525 | ;; Check checkin problem. We could check `status' as well. | 524 | (when (not (zerop status)) |
| 526 | (when (re-search-forward "Up-to-date check failed" nil t) | 525 | ;; Check checkin problem. |
| 527 | (vc-file-setprop file 'vc-state 'needs-merge) | 526 | (cond |
| 528 | (error (substitute-command-keys | 527 | ((re-search-forward "Up-to-date check failed" nil t) |
| 529 | "Up-to-date check failed: type \\[vc-next-action] to merge in changes"))) | 528 | (vc-file-setprop file 'vc-state 'needs-merge) |
| 529 | (error (substitute-command-keys | ||
| 530 | (concat "Up-to-date check failed: " | ||
| 531 | "type \\[vc-next-action] to merge in changes")))) | ||
| 532 | (t | ||
| 533 | (pop-to-buffer (current-buffer)) | ||
| 534 | (goto-char (point-min)) | ||
| 535 | (shrink-window-if-larger-than-buffer) | ||
| 536 | (error "Check-in failed")))) | ||
| 530 | ;; Update file properties | 537 | ;; Update file properties |
| 531 | (vc-file-setprop | 538 | (vc-file-setprop |
| 532 | file 'vc-workfile-version | 539 | file 'vc-workfile-version |