comparison lisp/vc.el @ 1335:d649d430148d

(vc-checkin-switches): New defvar. (vc-backend-checkin): Pass vc-checkin-switches to prog.
author Roland McGrath <roland@gnu.org>
date Mon, 05 Oct 1992 05:17:21 +0000
parents de79e26e67cf
children 32f079d092a9
comparison
equal deleted inserted replaced
1334:92791ed2d1eb 1335:d649d430148d
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: 4.0 6 ;; Version: 4.0
7 7
8 ;; $Id: vc.el,v 1.6 1992/09/27 02:42:08 roland Exp rms $ 8 ;; $Id: vc.el,v 1.7 1992/09/28 13:01:53 rms Exp roland $
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
70 "*Prompt for initial comment when a file is registered.") 70 "*Prompt for initial comment when a file is registered.")
71 (defvar vc-command-messages nil 71 (defvar vc-command-messages nil
72 "*Display run messages from back-end commands.") 72 "*Display run messages from back-end commands.")
73 (defvar vc-mistrust-permissions 'file-symlink-p 73 (defvar vc-mistrust-permissions 'file-symlink-p
74 "*Don't assume that permissions and ownership track version-control status.") 74 "*Don't assume that permissions and ownership track version-control status.")
75
76 (defvar vc-checkin-switches nil
77 "*Extra switches passed to the checkin program by \\[vc-checkin].")
75 78
76 ;;;###autoload 79 ;;;###autoload
77 (defvar vc-checkin-hook nil 80 (defvar vc-checkin-hook nil
78 "*List of functions called after a vc-checkin is done. See `runs-hooks'.") 81 "*List of functions called after a vc-checkin is done. See `runs-hooks'.")
79 82
1059 (message "Checking in %s..." file) 1062 (message "Checking in %s..." file)
1060 (vc-backend-dispatch file 1063 (vc-backend-dispatch file
1061 (progn 1064 (progn
1062 (vc-do-command 0 "delta" file 1065 (vc-do-command 0 "delta" file
1063 (if rev (concat "-r" rev)) 1066 (if rev (concat "-r" rev))
1064 (concat "-y" comment)) 1067 (concat "-y" comment)
1068 vc-checkin-switches)
1065 (if vc-keep-workfiles 1069 (if vc-keep-workfiles
1066 (vc-do-command 0 "get" file)) 1070 (vc-do-command 0 "get" file))
1067 ) 1071 )
1068 (vc-do-command 0 "ci" file 1072 (vc-do-command 0 "ci" file
1069 (concat (if vc-keep-workfiles "-u" "-r") rev) 1073 (concat (if vc-keep-workfiles "-u" "-r") rev)
1070 (concat "-m" comment)) 1074 (concat "-m" comment)
1075 vc-checkin-switches)
1071 ) 1076 )
1072 (vc-file-setprop file 'vc-locking-user nil) 1077 (vc-file-setprop file 'vc-locking-user nil)
1073 (message "Checking in %s...done" file) 1078 (message "Checking in %s...done" file)
1074 ) 1079 )
1075 1080