diff options
| -rw-r--r-- | lisp/vc-rcs.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index 58e34bf5abd..73541ff9cab 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc-rcs.el,v 1.23 2002/02/25 22:04:29 spiegel Exp $ | 8 | ;; $Id: vc-rcs.el,v 1.24 2002/03/18 17:17:38 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -605,7 +605,10 @@ This function sets the properties `vc-workfile-version' and | |||
| 605 | `vc-checkout-model' to their correct values, based on the master | 605 | `vc-checkout-model' to their correct values, based on the master |
| 606 | file." | 606 | file." |
| 607 | (with-temp-buffer | 607 | (with-temp-buffer |
| 608 | (vc-insert-file (vc-name file) "^[0-9]") | 608 | (if (or (not (vc-insert-file (vc-name file) "^[0-9]")) |
| 609 | (progn (goto-char (point-min)) | ||
| 610 | (not (looking-at "^head[ \t\n]+[^;]+;$")))) | ||
| 611 | (error "File %s is not an RCS master file" (vc-name file))) | ||
| 609 | (let ((workfile-is-latest nil) | 612 | (let ((workfile-is-latest nil) |
| 610 | (default-branch (vc-parse-buffer "^branch[ \t\n]+\\([^;]*\\);" 1))) | 613 | (default-branch (vc-parse-buffer "^branch[ \t\n]+\\([^;]*\\);" 1))) |
| 611 | (vc-file-setprop file 'vc-rcs-default-branch default-branch) | 614 | (vc-file-setprop file 'vc-rcs-default-branch default-branch) |