diff options
| -rw-r--r-- | lisp/vc.el | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index ff28daf64b4..3e60c19b014 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> | 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> |
| 6 | ;; Version: 4.0 | 6 | ;; Version: 4.0 |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.8 1992/10/05 05:17:21 roland Exp roland $ | 8 | ;; $Id: vc.el,v 1.9 1992/10/05 05:20:52 roland Exp roland $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -1060,20 +1060,23 @@ Return nil if there is no such person." | |||
| 1060 | ;; keywords expanded if vc-keep-workfiles is non-nil, otherwise | 1060 | ;; keywords expanded if vc-keep-workfiles is non-nil, otherwise |
| 1061 | ;; it deletes the workfile. | 1061 | ;; it deletes the workfile. |
| 1062 | (message "Checking in %s..." file) | 1062 | (message "Checking in %s..." file) |
| 1063 | (vc-backend-dispatch file | 1063 | (save-excursion |
| 1064 | (progn | 1064 | ;; Change buffers to get local value of vc-checkin-switches. |
| 1065 | (apply 'vc-do-command 0 "delta" file | 1065 | (set-buffer (or (get-file-buffer file) (current-buffer))) |
| 1066 | (if rev (concat "-r" rev)) | 1066 | (vc-backend-dispatch file |
| 1067 | (concat "-y" comment) | 1067 | (progn |
| 1068 | vc-checkin-switches) | 1068 | (apply 'vc-do-command 0 "delta" file |
| 1069 | (if vc-keep-workfiles | 1069 | (if rev (concat "-r" rev)) |
| 1070 | (vc-do-command 0 "get" file)) | 1070 | (concat "-y" comment) |
| 1071 | ) | 1071 | vc-checkin-switches) |
| 1072 | (apply 'vc-do-command 0 "ci" file | 1072 | (if vc-keep-workfiles |
| 1073 | (concat (if vc-keep-workfiles "-u" "-r") rev) | 1073 | (vc-do-command 0 "get" file)) |
| 1074 | (concat "-m" comment) | 1074 | ) |
| 1075 | vc-checkin-switches) | 1075 | (apply 'vc-do-command 0 "ci" file |
| 1076 | ) | 1076 | (concat (if vc-keep-workfiles "-u" "-r") rev) |
| 1077 | (concat "-m" comment) | ||
| 1078 | vc-checkin-switches) | ||
| 1079 | )) | ||
| 1077 | (vc-file-setprop file 'vc-locking-user nil) | 1080 | (vc-file-setprop file 'vc-locking-user nil) |
| 1078 | (message "Checking in %s...done" file) | 1081 | (message "Checking in %s...done" file) |
| 1079 | ) | 1082 | ) |