summaryrefslogtreecommitdiff
path: root/lisp/vc-sccs.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-04-05 00:15:13 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-04-05 00:15:13 +0000
commit90e9ca17a7b50e827171708901f0d38fbd53ed6b (patch)
tree74da7dd3cfa5c81e75c1c5a3d2151e78fc95d1c6 /lisp/vc-sccs.el
parentd926e68f197d0703b6c10693f89a352ac77e0b6a (diff)
downloademacs-90e9ca17a7b50e827171708901f0d38fbd53ed6b.tar.gz
* vc-rcs.el (vc-rcs-dir-status):
* vc-sccs.el (vc-sccs-dir-status): New function.
Diffstat (limited to 'lisp/vc-sccs.el')
-rw-r--r--lisp/vc-sccs.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/vc-sccs.el b/lisp/vc-sccs.el
index 0c1cc41ed64..22b73104d34 100644
--- a/lisp/vc-sccs.el
+++ b/lisp/vc-sccs.el
@@ -144,6 +144,18 @@ For a description of possible values, see `vc-check-master-templates'."
(vc-sccs-state file))))
(vc-sccs-state file)))
+;; XXX Experimental function for the vc-dired replacement.
+(defun vc-sccs-dir-status (dir update-function status-buffer)
+ ;; XXX: quick hack, there should be a better way to do this,
+ ;; but it's not worse than vc-dired :-).
+ (let ((flist (vc-expand-dirs (list dir)))
+ (result nil))
+ (dolist (file flist)
+ (let ((state (vc-state file))
+ (frel (file-relative-name file)))
+ (push (list frel state) result)))
+ (funcall update-function result status-buffer)))
+
(defun vc-sccs-working-revision (file)
"SCCS-specific version of `vc-working-revision'."
(with-temp-buffer