diff options
| -rw-r--r-- | lisp/vc-mcvs.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el index 9f204bfc046..1f59f5f3280 100644 --- a/lisp/vc-mcvs.el +++ b/lisp/vc-mcvs.el | |||
| @@ -116,14 +116,16 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 116 | ;;;###autoload (defun vc-mcvs-registered (file) | 116 | ;;;###autoload (defun vc-mcvs-registered (file) |
| 117 | ;;;###autoload (let ((dir file)) | 117 | ;;;###autoload (let ((dir file)) |
| 118 | ;;;###autoload (while (and (stringp dir) | 118 | ;;;###autoload (while (and (stringp dir) |
| 119 | ;;;###autoload (not (equal dir (setq dir (file-name-directory dir))))) | 119 | ;;;###autoload (not (equal |
| 120 | ;;;###autoload dir (setq dir (file-name-directory dir)))) | ||
| 121 | ;;;###autoload dir) | ||
| 120 | ;;;###autoload (setq dir (if (file-directory-p | 122 | ;;;###autoload (setq dir (if (file-directory-p |
| 121 | ;;;###autoload (expand-file-name "MCVS/CVS" dir)) | 123 | ;;;###autoload (expand-file-name "MCVS/CVS" dir)) |
| 122 | ;;;###autoload t (directory-file-name dir)))) | 124 | ;;;###autoload t (directory-file-name dir)))) |
| 123 | ;;;###autoload (if (eq dir t) | 125 | ;;;###autoload (if (eq dir t) |
| 124 | ;;;###autoload (progn | 126 | ;;;###autoload (progn |
| 125 | ;;;###autoload (load "vc-mcvs") | 127 | ;;;###autoload (load "vc-mcvs") |
| 126 | ;;;###autoload (vc-mcvs-registered file))))) | 128 | ;;;###autoload (vc-mcvs-registered file))))) |
| 127 | 129 | ||
| 128 | (defun vc-mcvs-root (file) | 130 | (defun vc-mcvs-root (file) |
| 129 | "Return the root directory of a Meta-CVS project, if any." | 131 | "Return the root directory of a Meta-CVS project, if any." |
| @@ -132,7 +134,8 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 132 | file 'mcvs-root | 134 | file 'mcvs-root |
| 133 | (let ((root nil)) | 135 | (let ((root nil)) |
| 134 | (while (not (or root | 136 | (while (not (or root |
| 135 | (equal file (setq file (file-name-directory file))))) | 137 | (equal file (setq file (file-name-directory file))) |
| 138 | (null file))) | ||
| 136 | (if (file-directory-p (expand-file-name "MCVS/CVS" file)) | 139 | (if (file-directory-p (expand-file-name "MCVS/CVS" file)) |
| 137 | (setq root file) | 140 | (setq root file) |
| 138 | (setq file (directory-file-name file)))) | 141 | (setq file (directory-file-name file)))) |