aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-svn.el44
2 files changed, 18 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7bea73a2329..794db2e53eb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12007-02-19 Stefan Monnier <monnier@iro.umontreal.ca> 12007-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * vc-svn.el: Remove the code inherited from CVSREAD and `cvs edit'.
4 (vc-svn-use-edit): Remove unused config var.
5 (vc-svn-update, vc-svn-revert): Checkout is always implicit.
6
3 * outline.el (hide-sublevels): Keep empty last line, if available. 7 * outline.el (hide-sublevels): Keep empty last line, if available.
4 8
5 * buff-menu.el (list-buffers-noselect): Use explicit unicode code 9 * buff-menu.el (list-buffers-noselect): Use explicit unicode code
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 730806fdcd0..1538a2a1ab3 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -85,18 +85,12 @@ If you want to force an empty list of arguments, use t."
85 :type '(repeat string) 85 :type '(repeat string)
86 :group 'vc) 86 :group 'vc)
87 87
88(defconst vc-svn-use-edit nil 88;; We want to autoload it for use by the autoloaded version of
89 ;; Subversion does not provide this feature (yet). 89;; vc-svn-registered, but we want the value to be compiled at startup, not
90 "*Non-nil means to use `svn edit' to \"check out\" a file. 90;; at dump time.
91This is only meaningful if you don't use the implicit checkout model 91;; ;;;###autoload
92\(i.e. if you have $SVNREAD set)." 92(defconst vc-svn-admin-directory
93 ;; :type 'boolean 93 (cond ((and (memq system-type '(cygwin windows-nt ms-dos))
94 ;; :version "22.1"
95 ;; :group 'vc
96 )
97
98(defvar vc-svn-admin-directory
99 (cond ((and (eq system-type 'windows-nt)
100 (getenv "SVN_ASP_DOT_NET_HACK")) 94 (getenv "SVN_ASP_DOT_NET_HACK"))
101 "_svn") 95 "_svn")
102 (t ".svn")) 96 (t ".svn"))
@@ -111,12 +105,12 @@ This is only meaningful if you don't use the implicit checkout model
111 105
112;;;###autoload (defun vc-svn-registered (f) 106;;;###autoload (defun vc-svn-registered (f)
113;;;###autoload (let ((admin-dir (cond ((and (eq system-type 'windows-nt) 107;;;###autoload (let ((admin-dir (cond ((and (eq system-type 'windows-nt)
114;;;###autoload (getenv "SVN_ASP_DOT_NET_HACK")) 108;;;###autoload (getenv "SVN_ASP_DOT_NET_HACK"))
115;;;###autoload "_svn") 109;;;###autoload "_svn")
116;;;###autoload (t ".svn")))) 110;;;###autoload (t ".svn"))))
117;;;###autoload (when (file-readable-p (expand-file-name 111;;;###autoload (when (file-readable-p (expand-file-name
118;;;###autoload (concat admin-dir "/entries") 112;;;###autoload (concat admin-dir "/entries")
119;;;###autoload (file-name-directory f))) 113;;;###autoload (file-name-directory f)))
120;;;###autoload (load "vc-svn") 114;;;###autoload (load "vc-svn")
121;;;###autoload (vc-svn-registered f)))) 115;;;###autoload (vc-svn-registered f))))
122 116
@@ -274,13 +268,8 @@ This is only possible if SVN is responsible for FILE's directory.")
274 268
275(defun vc-svn-update (file editable rev switches) 269(defun vc-svn-update (file editable rev switches)
276 (if (and (file-exists-p file) (not rev)) 270 (if (and (file-exists-p file) (not rev))
277 ;; If no revision was specified, just make the file writable 271 ;; If no revision was specified, there's nothing to do.
278 ;; if necessary (using `svn-edit' if requested). 272 nil
279 (and editable (not (eq (vc-svn-checkout-model file) 'implicit))
280 (if vc-svn-use-edit
281 (vc-svn-command nil 0 file "edit")
282 (set-file-modes file (logior (file-modes file) 128))
283 (if (equal file buffer-file-name) (toggle-read-only -1))))
284 ;; Check out a particular version (or recreate the file). 273 ;; Check out a particular version (or recreate the file).
285 (vc-file-setprop file 'vc-workfile-version nil) 274 (vc-file-setprop file 'vc-workfile-version nil)
286 (apply 'vc-svn-command nil 0 file 275 (apply 'vc-svn-command nil 0 file
@@ -302,12 +291,7 @@ This is only possible if SVN is responsible for FILE's directory.")
302(defun vc-svn-revert (file &optional contents-done) 291(defun vc-svn-revert (file &optional contents-done)
303 "Revert FILE to the version it was based on." 292 "Revert FILE to the version it was based on."
304 (unless contents-done 293 (unless contents-done
305 (vc-svn-command nil 0 file "revert")) 294 (vc-svn-command nil 0 file "revert")))
306 (unless (eq (vc-checkout-model file) 'implicit)
307 (if vc-svn-use-edit
308 (vc-svn-command nil 0 file "unedit")
309 ;; Make the file read-only by switching off all w-bits
310 (set-file-modes file (logand (file-modes file) 3950)))))
311 295
312(defun vc-svn-merge (file first-version &optional second-version) 296(defun vc-svn-merge (file first-version &optional second-version)
313 "Merge changes into current working copy of FILE. 297 "Merge changes into current working copy of FILE.