[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/vc-cvs.el
From: |
Andre Spiegel |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/vc-cvs.el |
Date: |
Mon, 17 Feb 2003 03:11:15 -0500 |
Index: emacs/lisp/vc-cvs.el
diff -c emacs/lisp/vc-cvs.el:1.50 emacs/lisp/vc-cvs.el:1.51
*** emacs/lisp/vc-cvs.el:1.50 Thu Dec 26 09:05:48 2002
--- emacs/lisp/vc-cvs.el Mon Feb 17 03:11:13 2003
***************
*** 5,11 ****
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <address@hidden>
! ;; $Id: vc-cvs.el,v 1.50 2002/12/26 14:05:48 spiegel Exp $
;; This file is part of GNU Emacs.
--- 5,11 ----
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <address@hidden>
! ;; $Id: vc-cvs.el,v 1.51 2003/02/17 08:11:13 spiegel Exp $
;; This file is part of GNU Emacs.
***************
*** 207,225 ****
(defun vc-cvs-dir-state (dir)
"Find the CVS state of all files in DIR."
! (if (vc-cvs-stay-local-p dir)
! (vc-cvs-dir-state-heuristic dir)
! (let ((default-directory dir))
! ;; Don't specify DIR in this command, the default-directory is
! ;; enough. Otherwise it might fail with remote repositories.
! (with-temp-buffer
! (vc-cvs-command t 0 nil "status" "-l")
! (goto-char (point-min))
! (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t)
! (narrow-to-region (match-beginning 0) (match-end 0))
! (vc-cvs-parse-status)
! (goto-char (point-max))
! (widen))))))
(defun vc-cvs-workfile-version (file)
"CVS-specific version of `vc-workfile-version'."
--- 207,227 ----
(defun vc-cvs-dir-state (dir)
"Find the CVS state of all files in DIR."
! ;; if DIR is not under CVS control, don't do anything
! (if (file-readable-p (expand-file-name "CVS/Entries" dir))
! (if (vc-cvs-stay-local-p dir)
! (vc-cvs-dir-state-heuristic dir)
! (let ((default-directory dir))
! ;; Don't specify DIR in this command, the default-directory is
! ;; enough. Otherwise it might fail with remote repositories.
! (with-temp-buffer
! (vc-do-command t 0 "cvs" nil "status" "-l")
! (goto-char (point-min))
! (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t)
! (narrow-to-region (match-beginning 0) (match-end 0))
! (vc-cvs-parse-status)
! (goto-char (point-max))
! (widen)))))))
(defun vc-cvs-workfile-version (file)
"CVS-specific version of `vc-workfile-version'."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/vc-cvs.el,
Andre Spiegel <=