aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2000-09-09 00:48:41 +0000
committerStefan Monnier2000-09-09 00:48:41 +0000
commite1d95cc47186c5244daf37fdcd131119e3b761c2 (patch)
tree59b64a0c458676c39a88278282af4e93c950ba35 /lisp
parentcec33c9095142e53bb35bf6880fc3c91effbc416 (diff)
downloademacs-e1d95cc47186c5244daf37fdcd131119e3b761c2.tar.gz
emacs-e1d95cc47186c5244daf37fdcd131119e3b761c2.zip
* vc-sccs.el (vc-sccs-register):
* vc-rcs.el (vc-rcs-register): * vc-cvs.el (vc-cvs-register): Don't clear file's properties. * vc.el (vc-register): Clear file's properties.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc-cvs.el3
-rw-r--r--lisp/vc-rcs.el3
-rw-r--r--lisp/vc-sccs.el3
-rw-r--r--lisp/vc.el5
4 files changed, 6 insertions, 8 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 362e1e4032e..95e2252c7f2 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-cvs.el,v 1.2 2000/09/05 20:08:20 monnier Exp $ 8;; $Id: vc-cvs.el,v 1.3 2000/09/07 20:01:53 fx Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -557,7 +557,6 @@ COMMENT can be used to provide an initial description of FILE.
557 557
558`vc-register-switches' and `vc-cvs-register-switches' are passed to 558`vc-register-switches' and `vc-cvs-register-switches' are passed to
559the CVS command (in that order)." 559the CVS command (in that order)."
560 (vc-file-clearprops file)
561 (let ((switches (list 560 (let ((switches (list
562 (if (stringp vc-register-switches) 561 (if (stringp vc-register-switches)
563 (list vc-register-switches) 562 (list vc-register-switches)
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el
index 5856d089e4c..2cc42744dc4 100644
--- a/lisp/vc-rcs.el
+++ b/lisp/vc-rcs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-rcs.el,v 1.2 2000/09/05 20:08:21 monnier Exp $ 8;; $Id: vc-rcs.el,v 1.3 2000/09/07 20:02:38 fx Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -637,7 +637,6 @@ the RCS command (in that order).
637 637
638Automatically retrieve a read-only version of the file with keywords 638Automatically retrieve a read-only version of the file with keywords
639expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile." 639expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
640 (vc-file-clearprops file)
641 (let ((subdir (expand-file-name "RCS" (file-name-directory file))) 640 (let ((subdir (expand-file-name "RCS" (file-name-directory file)))
642 (switches (list 641 (switches (list
643 (if (stringp vc-register-switches) 642 (if (stringp vc-register-switches)
diff --git a/lisp/vc-sccs.el b/lisp/vc-sccs.el
index 03bcdfd1d74..db618915e90 100644
--- a/lisp/vc-sccs.el
+++ b/lisp/vc-sccs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-sccs.el,v 1.2 2000/09/05 20:08:22 monnier Exp $ 8;; $Id: vc-sccs.el,v 1.3 2000/09/07 20:06:55 fx Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -297,7 +297,6 @@ the SCCS command (in that order).
297 297
298Automatically retrieve a read-only version of the file with keywords 298Automatically retrieve a read-only version of the file with keywords
299expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile." 299expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
300 (vc-file-clearprops file)
301 (let* ((switches (list 300 (let* ((switches (list
302 (if (stringp vc-register-switches) 301 (if (stringp vc-register-switches)
303 (list vc-register-switches) 302 (list vc-register-switches)
diff --git a/lisp/vc.el b/lisp/vc.el
index cb3b71b2e37..fa4dba9af9e 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1018,10 +1018,10 @@ merge in the changes into your working copy."
1018;;;###autoload 1018;;;###autoload
1019(defun vc-register (&optional set-version comment) 1019(defun vc-register (&optional set-version comment)
1020 "Register the current file into a version control system. 1020 "Register the current file into a version control system.
1021With prefix argument SET-VERSION, allow user to specify initial version 1021With prefix argument SET-VERSION, allow user to specify initial version
1022level. If COMMENT is present, use that as an initial comment. 1022level. If COMMENT is present, use that as an initial comment.
1023 1023
1024The version-control system to use is found by cycling through the list 1024The version control system to use is found by cycling through the list
1025`vc-handled-backends'. The first backend in that list which declares 1025`vc-handled-backends'. The first backend in that list which declares
1026itself responsible for the file (usually because other files in that 1026itself responsible for the file (usually because other files in that
1027directory are already registered under that backend) will be used to 1027directory are already registered under that backend) will be used to
@@ -1053,6 +1053,7 @@ first backend that could register the file is used."
1053 (lambda (file rev comment) 1053 (lambda (file rev comment)
1054 (message "Registering %s... " file) 1054 (message "Registering %s... " file)
1055 (let ((backend (vc-responsible-backend file))) 1055 (let ((backend (vc-responsible-backend file)))
1056 (vc-file-clearprops file)
1056 (vc-call-backend backend 'register file rev comment) 1057 (vc-call-backend backend 'register file rev comment)
1057 (vc-file-setprop file 'vc-backend backend) 1058 (vc-file-setprop file 'vc-backend backend)
1058 (unless vc-make-backup-files 1059 (unless vc-make-backup-files