aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel1997-05-21 14:42:09 +0000
committerAndré Spiegel1997-05-21 14:42:09 +0000
commita1d713ef1e3ceb84375872513767ea82aafd36a5 (patch)
tree1a79768921729776edd67f5cde62765e4691e60f
parentb7f6ca05bf6702880fe298631e20e923bd357612 (diff)
downloademacs-a1d713ef1e3ceb84375872513767ea82aafd36a5.tar.gz
emacs-a1d713ef1e3ceb84375872513767ea82aafd36a5.zip
(vc-backend-admin): If there is no SCCS subdirectory yet, create it.
-rw-r--r--lisp/vc.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 5762cf4e605..d261692db04 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1957,6 +1957,9 @@ default directory."
1957 ((file-exists-p "CVS") 'CVS) 1957 ((file-exists-p "CVS") 'CVS)
1958 (t vc-default-back-end)))) 1958 (t vc-default-back-end))))
1959 (cond ((eq backend 'SCCS) 1959 (cond ((eq backend 'SCCS)
1960 ;; If there is no SCCS subdirectory yet, create it.
1961 ;; (SCCS could do without it, but VC requires it to be there.)
1962 (if (not (file-exists-p "SCCS")) (make-directory "SCCS"))
1960 (apply 'vc-do-command nil 0 "admin" file 'MASTER ;; SCCS 1963 (apply 'vc-do-command nil 0 "admin" file 'MASTER ;; SCCS
1961 (and rev (concat "-r" rev)) 1964 (and rev (concat "-r" rev))
1962 "-fb" 1965 "-fb"