summaryrefslogtreecommitdiff
path: root/lisp/vc-svn.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-11-09 03:31:09 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-11-09 03:31:09 +0000
commitcc3f61ea6d1e40c4346f3edf479674bd46ba81c6 (patch)
tree98742bf8ed1538563f9b6ab522a7141e2e4112c3 /lisp/vc-svn.el
parentb2073098c800770d7666edc6768e80df3273dca7 (diff)
downloademacs-cc3f61ea6d1e40c4346f3edf479674bd46ba81c6.tar.gz
Undo last fix.
Diffstat (limited to 'lisp/vc-svn.el')
-rw-r--r--lisp/vc-svn.el30
1 files changed, 6 insertions, 24 deletions
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 68bbc5b397d..c48ce7a5f99 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -95,38 +95,22 @@ This is only meaningful if you don't use the implicit checkout model
;; :group 'vc
)
-(defvar vc-svn-admin-directory
- (cond ((and (eq system-type 'windows-nt)
- (getenv "SVN_ASP_DOT_NET_HACK"))
- "_svn")
- (t ".svn"))
- "The name of the \".svn\" subdirectory or its equivalent.")
-
;;;
;;; State-querying functions
;;;
-;;; vc-svn-admin-directory is generally not defined when the
-;;; autoloaded function is called.
-
;;;###autoload (defun vc-svn-registered (f)
-;;;###autoload (let ((admin-dir (cond ((and (eq system-type 'windows-nt)
-;;;###autoload (getenv "SVN_ASP_DOT_NET_HACK"))
-;;;###autoload "_svn")
-;;;###autoload (t ".svn"))))
-;;;###autoload (when (file-readable-p (expand-file-name
-;;;###autoload (concat admin-dir "/entries"))
-;;;###autoload (file-name-directory f))
+;;;###autoload (when (file-readable-p (expand-file-name
+;;;###autoload ".svn/entries" (file-name-directory f)))
;;;###autoload (load "vc-svn")
-;;;###autoload (vc-svn-registered f))))
+;;;###autoload (vc-svn-registered f)))
;;;###autoload
(add-to-list 'completion-ignored-extensions ".svn/")
(defun vc-svn-registered (file)
"Check if FILE is SVN registered."
- (when (file-readable-p (expand-file-name (concat vc-svn-admin-directory
- "/entries")
+ (when (file-readable-p (expand-file-name ".svn/entries"
(file-name-directory file)))
(with-temp-buffer
(cd (file-name-directory file))
@@ -222,7 +206,7 @@ the SVN command (in that order)."
(defun vc-svn-responsible-p (file)
"Return non-nil if SVN thinks it is responsible for FILE."
- (file-directory-p (expand-file-name vc-svn-admin-directory
+ (file-directory-p (expand-file-name ".svn"
(if (file-directory-p file)
file
(file-name-directory file)))))
@@ -490,9 +474,7 @@ and that it passes `vc-svn-global-switches' to it before FLAGS."
(let ((coding-system-for-read
(or file-name-coding-system
default-file-name-coding-system)))
- (vc-insert-file (expand-file-name (concat vc-svn-admin-directory
- "/entries")
- dirname)))
+ (vc-insert-file (expand-file-name ".svn/entries" dirname)))
(goto-char (point-min))
(when (re-search-forward
;; Old `svn' used name="svn:dir", newer use just name="".