;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-cvs.el,v 1.2 2000/09/05 20:08:20 monnier Exp $
+;; $Id: vc-cvs.el,v 1.3 2000/09/07 20:01:53 fx Exp $
;; This file is part of GNU Emacs.
`vc-register-switches' and `vc-cvs-register-switches' are passed to
the CVS command (in that order)."
- (vc-file-clearprops file)
(let ((switches (list
(if (stringp vc-register-switches)
(list vc-register-switches)
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-rcs.el,v 1.2 2000/09/05 20:08:21 monnier Exp $
+;; $Id: vc-rcs.el,v 1.3 2000/09/07 20:02:38 fx Exp $
;; This file is part of GNU Emacs.
Automatically retrieve a read-only version of the file with keywords
expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
- (vc-file-clearprops file)
(let ((subdir (expand-file-name "RCS" (file-name-directory file)))
(switches (list
(if (stringp vc-register-switches)
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-sccs.el,v 1.2 2000/09/05 20:08:22 monnier Exp $
+;; $Id: vc-sccs.el,v 1.3 2000/09/07 20:06:55 fx Exp $
;; This file is part of GNU Emacs.
Automatically retrieve a read-only version of the file with keywords
expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
- (vc-file-clearprops file)
(let* ((switches (list
(if (stringp vc-register-switches)
(list vc-register-switches)
;;;###autoload
(defun vc-register (&optional set-version comment)
"Register the current file into a version control system.
-With prefix argument SET-VERSION, allow user to specify initial version
+With prefix argument SET-VERSION, allow user to specify initial version
level. If COMMENT is present, use that as an initial comment.
-The version-control system to use is found by cycling through the list
+The version control system to use is found by cycling through the list
`vc-handled-backends'. The first backend in that list which declares
itself responsible for the file (usually because other files in that
directory are already registered under that backend) will be used to
(lambda (file rev comment)
(message "Registering %s... " file)
(let ((backend (vc-responsible-backend file)))
+ (vc-file-clearprops file)
(vc-call-backend backend 'register file rev comment)
(vc-file-setprop file 'vc-backend backend)
(unless vc-make-backup-files