diff options
| author | Dan Nicolaescu | 2009-01-31 15:51:07 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-01-31 15:51:07 +0000 |
| commit | 1826af5ecc974ceb80a6786bc74066ca3bdc3132 (patch) | |
| tree | dce5acd98b15b752fb37da0955d37e5b7d1e5ea0 | |
| parent | de456f3ba152d49f70a2b88d503b641387cf4a52 (diff) | |
| download | emacs-1826af5ecc974ceb80a6786bc74066ca3bdc3132.tar.gz emacs-1826af5ecc974ceb80a6786bc74066ca3bdc3132.zip | |
(vc-svn-dir-status): Disable the vc-stay-local-p
logic, it makes the makes the normal case too slow.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-svn.el | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 362f46616f6..55c3862aefa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-svn.el (vc-svn-dir-status): Disable the vc-stay-local-p | ||
| 4 | logic, it makes the makes the normal case too slow. | ||
| 5 | |||
| 1 | 2009-01-31 Eli Zaretskii <eliz@gnu.org> | 6 | 2009-01-31 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * mail/unrmail.el (unrmail): Set coding-system of the old Rmail | 8 | * mail/unrmail.el (unrmail): Set coding-system of the old Rmail |
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index cfbc8496433..c2d0d62ab6c 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el | |||
| @@ -185,8 +185,12 @@ want to force an empty list of arguments, use t." | |||
| 185 | CALLBACK is called as (CALLBACK RESULT BUFFER), where | 185 | CALLBACK is called as (CALLBACK RESULT BUFFER), where |
| 186 | RESULT is a list of conses (FILE . STATE) for directory DIR." | 186 | RESULT is a list of conses (FILE . STATE) for directory DIR." |
| 187 | ;; FIXME should this rather be all the files in dir? | 187 | ;; FIXME should this rather be all the files in dir? |
| 188 | (let* ((local (vc-stay-local-p dir)) | 188 | ;; FIXME: the vc-stay-local-p logic below is disabled, it ends up |
| 189 | (remote (or (not local) (eq local 'only-file)))) | 189 | ;; calling synchronously (vc-svn-registered DIR) => calling svn status -v DIR |
| 190 | ;; which is VERY SLOW for big trees and it makes emacs | ||
| 191 | ;; completely unresponsive during that time. | ||
| 192 | (let* ((local (and nil (vc-stay-local-p dir))) | ||
| 193 | (remote (or t (not local) (eq local 'only-file)))) | ||
| 190 | (vc-svn-command (current-buffer) 'async nil "status" | 194 | (vc-svn-command (current-buffer) 'async nil "status" |
| 191 | (if remote "-u")) | 195 | (if remote "-u")) |
| 192 | (vc-exec-after | 196 | (vc-exec-after |