Mercurial > emacs
comparison lisp/vc-hg.el @ 87442:c5df210848ca
* 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.
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Fri, 28 Dec 2007 08:59:50 +0000 |
parents | ca399a1984c7 |
children | 71fc7b1db920 |
comparison
equal
deleted
inserted
replaced
87441:350032476821 | 87442:c5df210848ca |
---|---|
177 ((eq state ??) nil) | 177 ((eq state ??) nil) |
178 (t 'up-to-date)))))))) | 178 (t 'up-to-date)))))))) |
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) |
185 (file nil)) | 186 (file nil)) |
186 (while (not (eobp)) | 187 (while (not (eobp)) |