# HG changeset patch # User Richard M. Stallman # Date 855607417 0 # Node ID 6a9b49bc5161d956c2e28cb64a3c7f4abc3e42bd # Parent ff7346c311845c358670b205aa79fdbae397b93c (vc-do-command): If OKSTATUS is nil, ignore errors. (vc-backend-release): For RCS, pass nil for OKSTATUS. diff -r ff7346c31184 -r 6a9b49bc5161 lisp/vc.el --- a/lisp/vc.el Mon Feb 10 09:47:12 1997 +0000 +++ b/lisp/vc.el Mon Feb 10 20:43:37 1997 +0000 @@ -217,7 +217,7 @@ (cond ((eq backend 'RCS) (or vc-rcs-release - (and (zerop (vc-do-command nil 2 "rcs" nil nil "-V")) + (and (zerop (vc-do-command nil nil "rcs" nil nil "-V")) (save-excursion (set-buffer (get-buffer "*vc*")) (setq vc-rcs-release @@ -377,6 +377,7 @@ "Execute a version-control command, notifying user and checking for errors. Output from COMMAND goes to BUFFER, or *vc* if BUFFER is nil. The command is successful if its exit status does not exceed OKSTATUS. + (If OKSTATUS is nil, that means to ignore errors.) The last argument of the command is the master name of FILE if LAST is `MASTER', or the workfile of FILE if LAST is `WORKFILE'; this is appended to an optional list of FLAGS." @@ -421,7 +422,7 @@ (goto-char (point-max)) (set-buffer-modified-p nil) (forward-line -1) - (if (or (not (integerp status)) (< okstatus status)) + (if (or (not (integerp status)) (and okstatus (< okstatus status))) (progn (pop-to-buffer buffer) (goto-char (point-min))