* vc-bzr.el, vc-cvs.el, vc-git.el, vc-hg.el, vc-mcvs.el, vc-svn.el:
authorEric S. Raymond <esr@snark.thyrsus.com>
Fri, 28 Dec 2007 08:59:50 +0000 (08:59 +0000)
committerEric S. Raymond <esr@snark.thyrsus.com>
Fri, 28 Dec 2007 08:59:50 +0000 (08:59 +0000)
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.

lisp/ChangeLog
lisp/vc-bzr.el
lisp/vc-cvs.el
lisp/vc-git.el
lisp/vc-hg.el
lisp/vc-mcvs.el
lisp/vc-svn.el

index c62834d..04992cd 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-28  Eric S. Raymond  <esr@snark.thyrsus.com>
+
+       * 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.
+
 2007-12-28  Nick Roberts  <nickrob@snap.net.nz>
 
        * thumbs.el (thumbs-call-convert): Use call-process directly
index 5e9bace..c87424f 100644 (file)
@@ -498,6 +498,7 @@ Optional argument LOCALP is always ignored."
     ;; evidence of the contrary.
     (setq at-start t)
     (with-temp-buffer
+      (buffer-disable-undo)            ;; Because these buffers can get huge
       (vc-bzr-command "ls" t 0 nil "--versioned")
       (goto-char (point-min))
       (while (or at-start
index cdb3aae..f5c86d4 100644 (file)
@@ -221,6 +221,7 @@ See also variable `vc-cvs-sticky-date-format-string'."
        ;; Don't specify DIR in this command, the default-directory is
        ;; enough.  Otherwise it might fail with remote repositories.
        (with-temp-buffer
+         (buffer-disable-undo)         ;; Because these buffers can get huge
          (vc-cvs-command t 0 nil "status")
          (goto-char (point-min))
          (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t)
index 6fd6849..722e352 100644 (file)
 
 (defun vc-git-dir-state (dir)
   (with-temp-buffer
+    (buffer-disable-undo)              ;; Because these buffers can get huge
     (vc-git-command (current-buffer) nil nil "ls-files" "-t" "-c" "-m" "-o")
     (goto-char (point-min))
     (let ((status-char nil)
index c82984b..5c2cc35 100644 (file)
 
 (defun vc-hg-dir-state (dir)
   (with-temp-buffer
+    (buffer-disable-undo)              ;; Because these buffers can get huge
     (vc-hg-command (current-buffer) nil nil "status")
     (goto-char (point-min))
     (let ((status-char nil)
index ba0ccf4..4732f8d 100644 (file)
@@ -187,6 +187,7 @@ This is only meaningful if you don't use the implicit checkout model
        ;; Don't specify DIR in this command, the default-directory is
        ;; enough.  Otherwise it might fail with remote repositories.
        (with-temp-buffer
+         (buffer-disable-undo)         ;; Because these buffers can get huge
          (setq default-directory (vc-mcvs-root dir))
          (vc-mcvs-command t 0 nil "status")
          (goto-char (point-min))
index 87e1517..533a93c 100644 (file)
@@ -153,6 +153,7 @@ If you want to force an empty list of arguments, use t."
     ;; Don't specify DIR in this command, the default-directory is
     ;; enough.  Otherwise it might fail with remote repositories.
     (with-temp-buffer
+      (buffer-disable-undo)            ;; Because these buffers can get huge
       (vc-svn-command t 0 nil "status" (if localp "-v" "-u"))
       (vc-svn-parse-status))))