aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2007-12-28 08:59:50 +0000
committerEric S. Raymond2007-12-28 08:59:50 +0000
commit18e1f24981ba72ede1fb434568e18ed0e46debbd (patch)
tree4e753b9c938b377f2904f2640ff4bb2b385a1f06
parenta50d124451e48606aef655c0cde38b4cbf139988 (diff)
downloademacs-18e1f24981ba72ede1fb434568e18ed0e46debbd.tar.gz
emacs-18e1f24981ba72ede1fb434568e18ed0e46debbd.zip
* vc-bzr.el, vc-cvs.el, vc-git.el, vc-hg.el, vc-mcvs.el, vc-svn.el:
Modify all instances of the dir-state back-end method to suppress keeping undo lists on the buffers holding astatus output, which csn get extremely large.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/vc-bzr.el1
-rw-r--r--lisp/vc-cvs.el1
-rw-r--r--lisp/vc-git.el1
-rw-r--r--lisp/vc-hg.el1
-rw-r--r--lisp/vc-mcvs.el1
-rw-r--r--lisp/vc-svn.el1
7 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c62834d20b2..04992cd88f5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12007-12-28 Eric S. Raymond <esr@snark.thyrsus.com>
2
3 * vc-bzr.el, vc-cvs.el, vc-git.el, vc-hg.el, vc-mcvs.el, vc-svn.el:
4 Modify all instances of the dir-state back-end method to suppress
5 keeping undo lists on the buffers holding astatus output, which
6 csn get extremely large.
7
12007-12-28 Nick Roberts <nickrob@snap.net.nz> 82007-12-28 Nick Roberts <nickrob@snap.net.nz>
2 9
3 * thumbs.el (thumbs-call-convert): Use call-process directly 10 * thumbs.el (thumbs-call-convert): Use call-process directly
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index 5e9bace920f..c87424fb8f6 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -498,6 +498,7 @@ Optional argument LOCALP is always ignored."
498 ;; evidence of the contrary. 498 ;; evidence of the contrary.
499 (setq at-start t) 499 (setq at-start t)
500 (with-temp-buffer 500 (with-temp-buffer
501 (buffer-disable-undo) ;; Because these buffers can get huge
501 (vc-bzr-command "ls" t 0 nil "--versioned") 502 (vc-bzr-command "ls" t 0 nil "--versioned")
502 (goto-char (point-min)) 503 (goto-char (point-min))
503 (while (or at-start 504 (while (or at-start
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index cdb3aae8020..f5c86d4ead8 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -221,6 +221,7 @@ See also variable `vc-cvs-sticky-date-format-string'."
221 ;; Don't specify DIR in this command, the default-directory is 221 ;; Don't specify DIR in this command, the default-directory is
222 ;; enough. Otherwise it might fail with remote repositories. 222 ;; enough. Otherwise it might fail with remote repositories.
223 (with-temp-buffer 223 (with-temp-buffer
224 (buffer-disable-undo) ;; Because these buffers can get huge
224 (vc-cvs-command t 0 nil "status") 225 (vc-cvs-command t 0 nil "status")
225 (goto-char (point-min)) 226 (goto-char (point-min))
226 (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t) 227 (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t)
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 6fd6849281b..722e352f4f0 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -152,6 +152,7 @@
152 152
153(defun vc-git-dir-state (dir) 153(defun vc-git-dir-state (dir)
154 (with-temp-buffer 154 (with-temp-buffer
155 (buffer-disable-undo) ;; Because these buffers can get huge
155 (vc-git-command (current-buffer) nil nil "ls-files" "-t" "-c" "-m" "-o") 156 (vc-git-command (current-buffer) nil nil "ls-files" "-t" "-c" "-m" "-o")
156 (goto-char (point-min)) 157 (goto-char (point-min))
157 (let ((status-char nil) 158 (let ((status-char nil)
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index c82984b8c13..5c2cc35229d 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -179,6 +179,7 @@
179 179
180(defun vc-hg-dir-state (dir) 180(defun vc-hg-dir-state (dir)
181 (with-temp-buffer 181 (with-temp-buffer
182 (buffer-disable-undo) ;; Because these buffers can get huge
182 (vc-hg-command (current-buffer) nil nil "status") 183 (vc-hg-command (current-buffer) nil nil "status")
183 (goto-char (point-min)) 184 (goto-char (point-min))
184 (let ((status-char nil) 185 (let ((status-char nil)
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el
index ba0ccf47747..4732f8dcfe1 100644
--- a/lisp/vc-mcvs.el
+++ b/lisp/vc-mcvs.el
@@ -187,6 +187,7 @@ This is only meaningful if you don't use the implicit checkout model
187 ;; Don't specify DIR in this command, the default-directory is 187 ;; Don't specify DIR in this command, the default-directory is
188 ;; enough. Otherwise it might fail with remote repositories. 188 ;; enough. Otherwise it might fail with remote repositories.
189 (with-temp-buffer 189 (with-temp-buffer
190 (buffer-disable-undo) ;; Because these buffers can get huge
190 (setq default-directory (vc-mcvs-root dir)) 191 (setq default-directory (vc-mcvs-root dir))
191 (vc-mcvs-command t 0 nil "status") 192 (vc-mcvs-command t 0 nil "status")
192 (goto-char (point-min)) 193 (goto-char (point-min))
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 87e1517e879..533a93c380f 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -153,6 +153,7 @@ If you want to force an empty list of arguments, use t."
153 ;; Don't specify DIR in this command, the default-directory is 153 ;; Don't specify DIR in this command, the default-directory is
154 ;; enough. Otherwise it might fail with remote repositories. 154 ;; enough. Otherwise it might fail with remote repositories.
155 (with-temp-buffer 155 (with-temp-buffer
156 (buffer-disable-undo) ;; Because these buffers can get huge
156 (vc-svn-command t 0 nil "status" (if localp "-v" "-u")) 157 (vc-svn-command t 0 nil "status" (if localp "-v" "-u"))
157 (vc-svn-parse-status)))) 158 (vc-svn-parse-status))))
158 159