aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2012-04-10 20:24:26 -0700
committerGlenn Morris2012-04-10 20:24:26 -0700
commitab7ce8c15532d179579bb8a36e221b4d96840a2f (patch)
treeccfa1a00b238b116a5cf8b7bf8e9c13ffed79b2a /lisp
parentde8c03dc519ca124da1b410f744b3a69531fb79b (diff)
downloademacs-ab7ce8c15532d179579bb8a36e221b4d96840a2f.tar.gz
emacs-ab7ce8c15532d179579bb8a36e221b4d96840a2f.zip
Add another vc-bzr test
* lisp/vc/vc-bzr.el (vc-bzr-status): Avoid condition-case-unless-debug. * test/automated/vc-bzr.el (vc-bzr-test-faulty-bzr-autoloads): New test.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc/vc-bzr.el6
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index caaab6d5a61..75ea616e0b5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-04-11 Glenn Morris <rgm@gnu.org>
2
3 * vc/vc-bzr.el (vc-bzr-status): Avoid condition-case-unless-debug.
4
12012-04-11 Stefan Monnier <monnier@iro.umontreal.ca> 52012-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * window.el (window--state-get-1): Obey window-point-insertion-type. 7 * window.el (window--state-get-1): Obey window-point-insertion-type.
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el
index 34d11cf359f..505e40f46ba 100644
--- a/lisp/vc/vc-bzr.el
+++ b/lisp/vc/vc-bzr.el
@@ -410,7 +410,11 @@ in the branch repository (or whose status not be determined)."
410;; (unchanged . WARNING). FIXME unchanged is not the best status to 410;; (unchanged . WARNING). FIXME unchanged is not the best status to
411;; return in case of error. 411;; return in case of error.
412 (with-temp-buffer 412 (with-temp-buffer
413 (with-demoted-errors (vc-bzr-command "status" t 0 file)) 413 ;; This is with-demoted-errors without the condition-case-unless-debug
414 ;; annoyance, which makes it fail during ert testing.
415 (let (err)
416 (condition-case err (vc-bzr-command "status" t 0 file)
417 (error (message "Error: %S" err) nil)))
414 (let ((status 'unchanged)) 418 (let ((status 'unchanged))
415 ;; the only secure status indication in `bzr status' output 419 ;; the only secure status indication in `bzr status' output
416 ;; is a couple of lines following the pattern:: 420 ;; is a couple of lines following the pattern::