aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/vc-svn.el29
2 files changed, 19 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2878db6271f..5b80c1dbdbe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-02-11 Glenn Morris <rgm@gnu.org>
2
3 * vc/vc-svn.el (vc-svn-command): Move --non-interactive from here...
4 (vc-svn-global-switches): ... to here. (Bug#13513)
5
12013-02-10 Christopher Schmidt <christopher@ch.ristopher.com> 62013-02-10 Christopher Schmidt <christopher@ch.ristopher.com>
2 7
3 * minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle 8 * minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index fcdd792a69b..923888b460b 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -50,14 +50,21 @@
50 :type 'string 50 :type 'string
51 :group 'vc-svn) 51 :group 'vc-svn)
52 52
53(defcustom vc-svn-global-switches nil 53;; Might be nice if svn defaulted to non-interactive if stdin not tty.
54 "Global switches to pass to any SVN command." 54;; http://svn.haxx.se/dev/archive-2008-05/0762.shtml
55;; http://svn.haxx.se/dev/archive-2009-04/0094.shtml
56;; Maybe newer ones do?
57(defcustom vc-svn-global-switches (unless (eq system-type 'darwin) ; bug#13513
58 '("--non-interactive"))
59 "Global switches to pass to any SVN command.
60The option \"--non-interactive\" is often needed to prevent SVN
61hanging while prompting for authorization."
55 :type '(choice (const :tag "None" nil) 62 :type '(choice (const :tag "None" nil)
56 (string :tag "Argument String") 63 (string :tag "Argument String")
57 (repeat :tag "Argument List" 64 (repeat :tag "Argument List"
58 :value ("") 65 :value ("")
59 string)) 66 string))
60 :version "22.1" 67 :version "24.4"
61 :group 'vc-svn) 68 :group 'vc-svn)
62 69
63(defcustom vc-svn-register-switches nil 70(defcustom vc-svn-register-switches nil
@@ -600,19 +607,11 @@ NAME is assumed to be a URL."
600(defun vc-svn-command (buffer okstatus file-or-list &rest flags) 607(defun vc-svn-command (buffer okstatus file-or-list &rest flags)
601 "A wrapper around `vc-do-command' for use in vc-svn.el. 608 "A wrapper around `vc-do-command' for use in vc-svn.el.
602The difference to vc-do-command is that this function always invokes `svn', 609The difference to vc-do-command is that this function always invokes `svn',
603and that it passes \"--non-interactive\" and `vc-svn-global-switches' to 610and that it passes `vc-svn-global-switches' to it before FLAGS."
604it before FLAGS."
605 ;; Might be nice if svn defaulted to non-interactive if stdin not tty.
606 ;; http://svn.haxx.se/dev/archive-2008-05/0762.shtml
607 ;; http://svn.haxx.se/dev/archive-2009-04/0094.shtml
608 ;; Maybe newer ones do?
609 (or (member "--non-interactive"
610 (setq flags (if (stringp vc-svn-global-switches)
611 (cons vc-svn-global-switches flags)
612 (append vc-svn-global-switches flags))))
613 (setq flags (cons "--non-interactive" flags)))
614 (apply 'vc-do-command (or buffer "*vc*") okstatus vc-svn-program file-or-list 611 (apply 'vc-do-command (or buffer "*vc*") okstatus vc-svn-program file-or-list
615 flags)) 612 (if (stringp vc-svn-global-switches)
613 (cons vc-svn-global-switches flags)
614 (append vc-svn-global-switches flags))))
616 615
617(defun vc-svn-repository-hostname (dirname) 616(defun vc-svn-repository-hostname (dirname)
618 (with-temp-buffer 617 (with-temp-buffer