]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-find-cvs-master): Handle a "New file!" entry.
authorRichard M. Stallman <rms@gnu.org>
Tue, 22 Apr 1997 01:04:48 +0000 (01:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 22 Apr 1997 01:04:48 +0000 (01:04 +0000)
(vc-fetch-master-properties): Match "New file!".

lisp/vc-hooks.el

index ffcb5930de7be793b8219370c1ff12d520622342..6ddba1a4a3bd900b894e1a1869ec6a24c8a619ba 100644 (file)
@@ -356,6 +356,7 @@ See also variable `vc-consult-headers'.")
                                                           'needs-checkout)
             ((string-match "Unresolved Conflict" status) 'unresolved-conflict)
             ((string-match "Locally Added"       status) 'locally-added)
+            ((string-match "New file!"           status) 'locally-added)
             (t 'unknown)
             ))))))))
     (if (get-buffer "*vc-info*")
@@ -818,6 +819,13 @@ For CVS, the full name of CVS/Entries is returned."
                (vc-file-setprop file 'vc-checkout-time 0)
                (vc-file-setprop file 'vc-workfile-version "0")
                (throw 'found (cons (concat dirname "CVS/Entries") 'CVS)))
+              ((re-search-forward
+                (concat "^/" (regexp-quote basename)
+                        "/\\([^/]*\\)/Initial") nil t)
+               (setq case-fold-search fold)  ;; restore the old value
+               (vc-file-setprop file 'vc-workfile-version "0")
+               (vc-file-setprop file 'vc-checkout-time 0)
+               (throw 'found (cons (concat dirname "CVS/Entries") 'CVS)))
               (t (setq case-fold-search fold)  ;; restore the old value
                  nil)))
          (kill-buffer buffer)))))