]> code.delx.au - gnu-emacs/blobdiff - lisp/vc-sccs.el
(locate): Remove dot at the end of error argument.
[gnu-emacs] / lisp / vc-sccs.el
index 08be815bc0c612fe049cac830e87bc8a008e8e56..f3b922d143e6942425d08237a2c2235532a19a86 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author:     FSF (see vc.el for full credits)
 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
 
-;; $Id: vc-sccs.el,v 1.8 2001/02/01 15:12:35 spiegel Exp $
+;; $Id: vc-sccs.el,v 1.12 2001/07/16 12:22:59 pj Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -174,12 +174,11 @@ expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
       (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" vc-name
               (and rev (concat "-r" rev))
               "-fb"
-              (concat "-i" file)
+              (concat "-i" (file-relative-name file))
               (and comment (concat "-y" comment))
-              vc-name
               switches))
       (delete-file file)
       (if vc-keep-workfiles
@@ -262,7 +261,7 @@ locked.  REV is the revision to check out into WORKFILE."
                   switches)))))
     (message "Checking out %s...done" filename)))
 
-(defun vc-sccs-revert (file)
+(defun vc-sccs-revert (file &optional contents-done)
   "Revert FILE to the version it was based on."
   (vc-do-command nil 0 "unget" (vc-name file))
   (vc-do-command nil 0 "get" (vc-name file))
@@ -293,7 +292,7 @@ EDITABLE non-nil means previous version should be locked."
 
 (defun vc-sccs-print-log (file)
   "Get change log associated with FILE."
-  (vc-do-command t 0 "prs" (vc-name file)))
+  (vc-do-command nil 0 "prs" (vc-name file)))
 
 (defun vc-sccs-logentry-check ()
   "Check that the log entry in the current buffer is acceptable for SCCS."
@@ -305,7 +304,7 @@ EDITABLE non-nil means previous version should be locked."
   "Get a difference report using SCCS between two versions of FILE."
   (setq oldvers (vc-sccs-lookup-triple file oldvers))
   (setq newvers (vc-sccs-lookup-triple file newvers))
-  (apply 'vc-do-command t 1 "vcdiff" (vc-name file) 
+  (apply 'vc-do-command "*vc-diff*" 1 "vcdiff" (vc-name file) 
          (append (list "-q"
                        (and oldvers (concat "-r" oldvers))
                        (and newvers (concat "-r" newvers)))
@@ -419,6 +418,3 @@ If NAME is nil or a version number string it's just passed through."
 (provide 'vc-sccs)
 
 ;;; vc-sccs.el ends here
-
-
-