summaryrefslogtreecommitdiff
path: root/lisp/vc-cvs.el
diff options
context:
space:
mode:
authorAndré Spiegel <spiegel@gnu.org>2000-10-27 11:37:17 +0000
committerAndré Spiegel <spiegel@gnu.org>2000-10-27 11:37:17 +0000
commitbee48f254bfb43ca0f520f53c46c7d29bcdcc28e (patch)
tree0a4cd9494b46abbfaf52b6737c8cfdf6a2b24c2c /lisp/vc-cvs.el
parente39fc3144fba7d9d505a5e73f2850fe09ed12428 (diff)
downloademacs-bee48f254bfb43ca0f520f53c46c7d29bcdcc28e.tar.gz
emacs-bee48f254bfb43ca0f520f53c46c7d29bcdcc28e.tar.bz2
emacs-bee48f254bfb43ca0f520f53c46c7d29bcdcc28e.zip
(vc-cvs-checkin): Check both status and error message after command.
If there's an unexpected error, signal it instead of being silent.
Diffstat (limited to 'lisp/vc-cvs.el')
-rw-r--r--lisp/vc-cvs.el21
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 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-cvs.el,v 1.5 2000/10/04 09:51:15 spiegel Exp $
+;; $Id: vc-cvs.el,v 1.6 2000/10/22 15:31:11 spiegel Exp $
;; This file is part of GNU Emacs.
@@ -519,14 +519,21 @@ Inappropriate for CVS"
"ci" (if rev (concat "-r" rev))
(concat "-m" comment)
switches))
- ;; determine and store the new workfile version
(set-buffer "*vc*")
(goto-char (point-min))
- ;; Check checkin problem. We could check `status' as well.
- (when (re-search-forward "Up-to-date check failed" nil t)
- (vc-file-setprop file 'vc-state 'needs-merge)
- (error (substitute-command-keys
- "Up-to-date check failed: type \\[vc-next-action] to merge in changes")))
+ (when (not (zerop status))
+ ;; Check checkin problem.
+ (cond
+ ((re-search-forward "Up-to-date check failed" nil t)
+ (vc-file-setprop file 'vc-state 'needs-merge)
+ (error (substitute-command-keys
+ (concat "Up-to-date check failed: "
+ "type \\[vc-next-action] to merge in changes"))))
+ (t
+ (pop-to-buffer (current-buffer))
+ (goto-char (point-min))
+ (shrink-window-if-larger-than-buffer)
+ (error "Check-in failed"))))
;; Update file properties
(vc-file-setprop
file 'vc-workfile-version