aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-05-14 15:00:31 +0000
committerStefan Monnier2003-05-14 15:00:31 +0000
commit0ded0280ab0255cbad50008c2aea69eadd23bd15 (patch)
treefcaab13b7404587fcb1a9aa8743fcfc0dfe7e093
parentfd93e33104f25932d6b3e8bd4f8411fd5e127c8b (diff)
downloademacs-0ded0280ab0255cbad50008c2aea69eadd23bd15.tar.gz
emacs-0ded0280ab0255cbad50008c2aea69eadd23bd15.zip
(cvs-parse-table): Remove unused var `type'.
Look up `.cvsignore' to see what to do with `new-dir' messages. (cvs-parse-merge): Remove unused var `handled'.
-rw-r--r--lisp/pcvs-parse.el19
1 files changed, 16 insertions, 3 deletions
diff --git a/lisp/pcvs-parse.el b/lisp/pcvs-parse.el
index 542069f7432..b8dbe815388 100644
--- a/lisp/pcvs-parse.el
+++ b/lisp/pcvs-parse.el
@@ -199,7 +199,7 @@ The remaining KEYS are passed directly to `cvs-create-fileinfo'."
199 199
200(defun cvs-parse-table () 200(defun cvs-parse-table ()
201 "Table of message objects for `cvs-parse-process'." 201 "Table of message objects for `cvs-parse-process'."
202 (let (c file dir path type base-rev subtype) 202 (let (c file dir path base-rev subtype)
203 (cvs-or 203 (cvs-or
204 204
205 (cvs-parse-status) 205 (cvs-parse-status)
@@ -266,7 +266,20 @@ The remaining KEYS are passed directly to `cvs-create-fileinfo'."
266 (and 266 (and
267 (cvs-match "New directory `\\(.*\\)' -- ignored$" (dir 1)) 267 (cvs-match "New directory `\\(.*\\)' -- ignored$" (dir 1))
268 ;; (cvs-parsed-fileinfo 'MESSAGE " " (file-name-as-directory dir)) 268 ;; (cvs-parsed-fileinfo 'MESSAGE " " (file-name-as-directory dir))
269 (cvs-parsed-fileinfo '(NEED-UPDATE . NEW-DIR) dir t)) 269 ;; These messages either correspond to a true new directory
270 ;; that an update will bring in, or to a directory that's empty
271 ;; on the current branch (either because it only exists in other
272 ;; branches, or because it's been removed).
273 (if (ignore-errors
274 (with-current-buffer
275 (find-file-noselect (expand-file-name
276 ".cvsignore" (file-name-directory dir)))
277 (goto-char (point-min))
278 (re-search-forward
279 (concat "^" (regexp-quote (file-name-nondirectory dir)) "/$")
280 nil t)))
281 t ;The user requested to ignore those messages.
282 (cvs-parsed-fileinfo '(NEED-UPDATE . NEW-DIR) dir t)))
270 283
271 ;; File removed, since it is removed (by third party) in repository. 284 ;; File removed, since it is removed (by third party) in repository.
272 (and 285 (and
@@ -387,7 +400,7 @@ The remaining KEYS are passed directly to `cvs-create-fileinfo'."
387 400
388 401
389(defun cvs-parse-merge () 402(defun cvs-parse-merge ()
390 (let (path base-rev head-rev handled type) 403 (let (path base-rev head-rev type)
391 ;; A merge (maybe with a conflict). 404 ;; A merge (maybe with a conflict).
392 (and 405 (and
393 (cvs-match "RCS file: .*$") 406 (cvs-match "RCS file: .*$")