summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-18 13:42:43 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-18 13:42:43 +0000
commit70563bb8a43236362d3281f67e9fce9b69938de9 (patch)
treeef4e0908e838b453bac555f8e0748811d380c022 /lisp/vc-hooks.el
parentfba95ca7a135b22bb78e2906b70582d930259252 (diff)
downloademacs-70563bb8a43236362d3281f67e9fce9b69938de9.tar.gz
(vc-fetch-master-properties): Use path-separator
for path to "cvs status" command.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el38
1 files changed, 18 insertions, 20 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 54f42bb47a3..d4146b354b6 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -281,7 +281,8 @@ value of this flag.")
;; Add vc-path to PATH for the execution of this command.
(process-environment
(cons (concat "PATH=" (getenv "PATH")
- ":" (mapconcat 'identity vc-path ":"))
+ path-separator
+ (mapconcat 'identity vc-path path-separator))
process-environment)))
(apply 'call-process "cvs" nil "*vc-info*" nil
(list "status" (file-name-nondirectory file))))
@@ -336,6 +337,7 @@ value of this flag.")
(and (progn (goto-char (point-min))
(search-forward "$Header: " nil t))
(looking-at "[^ ]+ \\([0-9.]+\\) ")))
+ (goto-char (match-end 0))
;; if found, store the revision number ...
(let ((rev (buffer-substring (match-beginning 1)
(match-end 1))))
@@ -567,24 +569,19 @@ value of this flag.")
(defun vc-fetch-properties (file)
;; Fetch vc-latest-version and vc-your-latest-version
;; if that wasn't already done.
- (vc-backend-dispatch
- file
- ;; SCCS
- (vc-fetch-master-properties file)
- ;; RCS
- (progn
- (set-buffer (get-buffer-create "*vc-info*"))
- (vc-insert-file (vc-name file) "^desc")
- (vc-parse-buffer
- (list '("^\\([0-9]+\\.[0-9.]+\\)\ndate[ \t]+\\([0-9.]+\\);" 1 2)
- (list (concat "^\\([0-9]+\\.[0-9.]+\\)\n"
- "date[ \t]+\\([0-9.]+\\);[ \t]+"
- "author[ \t]+"
- (regexp-quote (user-login-name)) ";") 1 2))
- file
- '(vc-latest-version vc-your-latest-version)))
- ;; CVS
- (vc-fetch-master-properties file)
+ (cond
+ ((eq (vc-backend file) 'RCS)
+ (set-buffer (get-buffer-create "*vc-info*"))
+ (vc-insert-file (vc-name file) "^desc")
+ (vc-parse-buffer
+ (list '("^\\([0-9]+\\.[0-9.]+\\)\ndate[ \t]+\\([0-9.]+\\);" 1 2)
+ (list (concat "^\\([0-9]+\\.[0-9.]+\\)\n"
+ "date[ \t]+\\([0-9.]+\\);[ \t]+"
+ "author[ \t]+"
+ (regexp-quote (user-login-name)) ";") 1 2))
+ file
+ '(vc-latest-version vc-your-latest-version)))
+ (t (vc-fetch-master-properties file))
))
(defun vc-workfile-version (file)
@@ -652,7 +649,8 @@ value of this flag.")
;; checks for this condition. This function returns nil if
;; DIRNAME/BASENAME is not handled by CVS.
(if (and (file-directory-p (concat dirname "CVS/"))
- (file-readable-p (concat dirname "CVS/Entries")))
+ (file-readable-p (concat dirname "CVS/Entries"))
+ (file-readable-p (concat dirname "CVS/Repository")))
(let ((bufs nil) (fold case-fold-search))
(unwind-protect
(save-excursion