2000-09-07 Dave Love <fx@gnu.org>
+ * vc-sccs.el: Doc fixes.
+ (vc-sccs-register-switches, vc-sccs-master-templates): Add
+ :version.
+
+ * vc-rcs.el: Doc fixes.
+ (vc-rcs-register-switches, vc-rcs-checkin-switches)
+ (vc-rcs-checkout-switches, vc-rcs-header)
+ (vc-rcs-master-templates): Add or change :version.
+
+ * vc-cvs.el: DOc fixes.
+ (vc-cvs-register-switches, vc-cvs-header, vc-cvs-use-edit)
+ (vc-cvs-stay-local): Add :version.
+
* menu-bar.el (menu-bar-options-menu): Fix the font-lock toggle.
2000-09-07 Kenichi Handa <handa@etl.go.jp>
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-sccs.el,v 1.1 2000/09/04 19:48:23 gerd Exp $
+;; $Id: vc-sccs.el,v 1.2 2000/09/05 20:08:22 monnier Exp $
;; This file is part of GNU Emacs.
;;; Code:
(defcustom vc-sccs-register-switches nil
- "*A string or list of strings; extra switches for registering a file
-in |SCCS. These are passed to the checkin program by
+ "*Extra switches for registering a file in SCCS.
+A string or list of strings passed to the checkin program by
\\[vc-sccs-register]."
:type '(choice (const :tag "None" nil)
(string :tag "Argument String")
(repeat :tag "Argument List"
:value ("")
string))
+ :version "21.1"
:group 'vc)
(defcustom vc-sccs-header (or (cdr (assoc 'SCCS vc-header-alist)) '("%W%"))
(repeat :tag "User-specified"
(choice string
function)))
- :version "20.5"
+ :version "21.1"
:group 'vc)
(defconst vc-sccs-name-assoc-file "VC-names")
(if (file-ownership-preserved-p file)
'edited
(vc-user-login-name owner-uid))
- ;; Strange permissions.
+ ;; Strange permissions.
;; Fall through to real state computation.
(vc-sccs-state file)))
(vc-sccs-state file))))
(vc-insert-file (vc-name file) "^\001e")
(vc-parse-buffer "^\001d D \\([^ ]+\\)" 1)))
-(defun vc-sccs-checkout-model (file)
+(defun vc-sccs-checkout-model (file)
"SCCS-specific version of `vc-checkout-model'."
'locking)
(defun vc-sccs-workfile-unchanged-p (file)
"SCCS-specific implementation of vc-workfile-unchanged-p."
(apply 'vc-do-command nil 1 "vcdiff" (vc-name file)
- (list "--brief" "-q"
+ (list "--brief" "-q"
(concat "-r" (vc-workfile-version file)))))
;; internal code
(defun vc-sccs-lookup-triple (file name)
"Return the numeric version corresponding to a named snapshot of FILE.
If NAME is nil or a version number string it's just passed through."
- (if (or (null name)
+ (if (or (null name)
(let ((firstchar (aref name 0)))
(and (>= firstchar ?0) (<= firstchar ?9))))
name
(vc-do-command nil 0 "get" (vc-name file) "-g" (if rev (concat "-r" rev))))
(defun vc-sccs-cancel-version (file writable)
- "Undo the most recent checkin of FILE.
+ "Undo the most recent checkin of FILE.
WRITABLE non-nil means previous version should be locked."
- (vc-do-command nil 0 "rmdel"
- (vc-name file)
+ (vc-do-command nil 0 "rmdel"
+ (vc-name file)
(concat "-r" (vc-workfile-version file)))
(vc-do-command nil 0 "get"
(vc-name file)
(vc-do-command nil 0 "get" (vc-name file)))))
(defun vc-sccs-latest-on-branch-p (file)
- "Return t iff the current workfile version of FILE is the latest on
-its branch."
+ "Return t iff the current workfile version of FILE is latest on its branch."
;; Always return t; we do not support previous versions in the workfile
;; under SCCS.
t)
(let ((vc-name
(or project-file
(format (car vc-sccs-master-templates) dirname basename)))|)
- (apply 'vc-do-command nil 0 "admin" nil
+ (apply 'vc-do-command nil 0 "admin" nil
(and rev (concat "-r" rev))
"-fb"
(concat "-i" file)
(vc-do-command nil 0 "get" (vc-name file)))))
(defun vc-sccs-checkout (file &optional writable rev workfile)
- "Retrieve a copy of a saved version of an SCCS controlled FILE into
-a WORKFILE. WRITABLE non-nil means that the file should be writable.
-REV is the revision to check out into WORKFILE."
+ "Retrieve a copy of a saved version of SCCS controlled FILE into a WORKFILE.
+WRITABLE non-nil means that the file should be writable. REV is the
+revision to check out into WORKFILE."
(let ((filename (or workfile file))
(file-buffer (get-file-buffer file))
switches)
(current-buffer) 0 "get" (vc-name file)
"-s" ;; suppress diagnostic output
(if writable "-e")
- "-p"
+ "-p"
(and rev
- (concat "-r"
+ (concat "-r"
(vc-sccs-lookup-triple file rev)))
switches)))
(set-file-modes filename
(message "Checking out %s...done" filename)))
(defun vc-sccs-update-changelog (files)
- (error "Sorry, generating ChangeLog entries is not implemented for SCCS."))
+ (error "Sorry, generating ChangeLog entries is not implemented for SCCS"))
(provide 'vc-sccs)