changeset 98495:e8a025cdac4a

* vc-svn.el (vc-svn-dir-status-files): * vc-cvs.el (vc-cvs-dir-status-files): New function.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 04 Oct 2008 01:22:26 +0000
parents 95d08e34e42a
children 44958ed3a501
files lisp/ChangeLog lisp/vc-cvs.el lisp/vc-svn.el
diffstat 3 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Oct 04 01:20:43 2008 +0000
+++ b/lisp/ChangeLog	Sat Oct 04 01:22:26 2008 +0000
@@ -1,3 +1,8 @@
+2008-10-04  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* vc-svn.el (vc-svn-dir-status-files):
+	* vc-cvs.el (vc-cvs-dir-status-files): New function.
+
 2008-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* vc-hg.el (vc-hg-dir-status-files): New function.
--- a/lisp/vc-cvs.el	Sat Oct 04 01:20:43 2008 +0000
+++ b/lisp/vc-cvs.el	Sat Oct 04 01:22:26 2008 +0000
@@ -916,6 +916,12 @@
   (vc-exec-after
    `(vc-cvs-after-dir-status (quote ,update-function))))
 
+(defun vc-cvs-dir-status-files (dir files default-state update-function)
+  "Create a list of conses (file . state) for DIR."
+  (apply 'vc-cvs-command (current-buffer) 'async dir "-f" "status" files)
+  (vc-exec-after
+   `(vc-cvs-after-dir-status (quote ,update-function))))
+
 (defun vc-cvs-file-to-string (file)
   "Read the content of FILE and return it as a string."
   (condition-case nil
--- a/lisp/vc-svn.el	Sat Oct 04 01:20:43 2008 +0000
+++ b/lisp/vc-svn.el	Sat Oct 04 01:22:26 2008 +0000
@@ -173,6 +173,11 @@
   (vc-exec-after
    `(vc-svn-after-dir-status (quote ,callback))))
 
+(defun vc-svn-dir-status-files (dir files default-state callback)
+  (apply 'vc-svn-command (current-buffer) 'async nil "status" files)
+  (vc-exec-after
+   `(vc-svn-after-dir-status (quote ,callback))))
+
 (defun vc-svn-status-extra-headers (dir)
   "Generate extra status headers for a Subversion working copy."
   (vc-svn-command "*vc*" 0 nil "info")