diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-02-10 14:37:42 -0500 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-02-10 14:37:42 -0500 |
| commit | cf77dd27af3e9893f4051887cb0e17999bbdb631 (patch) | |
| tree | 0a61fdc807ce9ca88ec618222107b9b248e9e9ee | |
| parent | 665addc97b7d74ac2456ec14448bc1c3f3d21471 (diff) | |
| download | emacs-cf77dd27af3e9893f4051887cb0e17999bbdb631.tar.gz | |
* lisp/vc/vc-dir.el (vc-dir-refresh): Reorder operations to try and avoid
bzr locking race condition.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-dir.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd33dda4382..70dc7697814 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-02-10 Stefan Monnier <monnier@iro.umontreal.ca> + * vc/vc-dir.el (vc-dir-refresh): Reorder operations to try and avoid + bzr locking race condition. + * emacs-lisp/edebug.el (edebug-instrument-function): Check a marker is still valid before using it. diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 5f386bcee76..38fbaaedd32 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -1061,6 +1061,9 @@ Throw an error if another update process is in progress." (unless (vc-dir-fileinfo->directory info) (setf (vc-dir-fileinfo->needs-update info) t) nil)) vc-ewoc) + ;; Bzr has serious locking problems, so setup the headers first (this is + ;; synchronous) rather than doing it while dir-status is running. + (ewoc-set-hf vc-ewoc (vc-dir-headers backend def-dir) "") (lexical-let ((buffer (current-buffer))) (with-current-buffer vc-dir-process-buffer (cd def-dir) @@ -1081,8 +1084,7 @@ Throw an error if another update process is in progress." (vc-dir-refresh-files (mapcar 'vc-dir-fileinfo->name remaining) 'up-to-date) - (setq mode-line-process nil))))))))) - (ewoc-set-hf vc-ewoc (vc-dir-headers backend def-dir) "")))) + (setq mode-line-process nil)))))))))))) (defun vc-dir-show-fileentry (file) "Insert an entry for a specific file into the current *VC-dir* listing. |
