comparison lisp/vc.el @ 2130:e5971e883f67

Bug fix.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Thu, 11 Mar 1993 07:45:02 +0000
parents ce87fdf94348
children ee24a74fd7cf
comparison
equal deleted inserted replaced
2129:6741f5f8ed54 2130:e5971e883f67
3 ;; Copyright (C) 1992 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992 Free Software Foundation, Inc.
4 4
5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6 ;; Version: 5.0 6 ;; Version: 5.0
7 7
8 ;; $Id: vc.el,v 1.23 1993/03/09 22:56:29 eric Exp eric $ 8 ;; $Id: vc.el,v 1.24 1993/03/09 23:02:40 eric Exp eric $
9 9
10 ;; This file is part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
11 11
12 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by 13 ;; it under the terms of the GNU General Public License as published by
1107 (message "Reverting %s...done" file) 1107 (message "Reverting %s...done" file)
1108 ;; keywords expanded if vc-keep-workfiles is non-nil, otherwise 1108 ;; keywords expanded if vc-keep-workfiles is non-nil, otherwise
1109 ;; it deletes the workfile. 1109 ;; it deletes the workfile.
1110 (message "Checking in %s..." file) 1110 (message "Checking in %s..." file)
1111 (save-excursion 1111 (save-excursion
1112 (message "Stealing lock on %s..." file)
1113 ;; Change buffers to get local value of vc-checkin-switches. 1112 ;; Change buffers to get local value of vc-checkin-switches.
1114 (set-buffer (or (get-file-buffer file) (current-buffer))) 1113 (set-buffer (or (get-file-buffer file) (current-buffer)))
1115 (vc-backend-dispatch file 1114 (vc-backend-dispatch file
1116 (progn 1115 (progn
1117 (apply 'vc-do-command 0 "delta" file 1116 (apply 'vc-do-command 0 "delta" file
1118 (if rev (concat "-r" rev)) 1117 (if rev (concat "-r" rev))
1119 (concat "-y" comment) 1118 (concat "-y" comment)
1120 vc-checkin-switches) 1119 vc-checkin-switches)
1121 (if vc-keep-workfiles 1120 (if vc-keep-workfiles
1122 (message "Stealing lock on %s...done" file)
1123 (vc-do-command 0 "get" file)) 1121 (vc-do-command 0 "get" file))
1124 ) 1122 )
1125 (apply 'vc-do-command 0 "ci" file 1123 (apply 'vc-do-command 0 "ci" file
1126 (concat (if vc-keep-workfiles "-u" "-r") rev) 1124 (concat (if vc-keep-workfiles "-u" "-r") rev)
1127 (concat "-m" comment) 1125 (concat "-m" comment)
1128 (message "Removing last change from %s..." file)
1129 vc-checkin-switches) 1126 vc-checkin-switches)
1130 )) 1127 ))
1131 (vc-file-setprop file 'vc-locking-user nil) 1128 (vc-file-setprop file 'vc-locking-user nil)
1132 (message "Checking in %s...done" file) 1129 (message "Checking in %s...done" file)
1133 ) 1130 )