From: Sam Steingold Date: Tue, 22 Sep 2009 18:43:45 +0000 (+0000) Subject: (vc-hg-outgoing, vc-hg-incoming): Ignore errors from X-Git-Tag: emacs-pretest-23.1.90~1198 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8dd110b4c35f64c6fa50b7910f5f18ed0dacc3d3;p=emacs.git (vc-hg-outgoing, vc-hg-incoming): Ignore errors from `vc-hg-command' because hg returns status 1 when nothing is found. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dfb3d544456..cebb444e380 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,8 @@ 2009-09-22 Sam Steingold * vc-hg.el (vc-hg-print-log): Fix shortlog arg passing. + (vc-hg-outgoing, vc-hg-incoming): Ignore errors from + `vc-hg-command' because hg returns status 1 when nothing is found. 2009-09-22 Stefan Monnier diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el index 597d807e7e7..80f130bd565 100644 --- a/lisp/vc-hg.el +++ b/lisp/vc-hg.el @@ -570,14 +570,14 @@ REV is the revision to check out into WORKFILE." (defun vc-hg-outgoing () (interactive) (let ((bname "*Hg outgoing*")) - (vc-hg-command bname 0 nil "outgoing" "-n") + (ignore-errors (vc-hg-command bname 0 nil "outgoing" "-n")) (pop-to-buffer bname) (vc-hg-outgoing-mode))) (defun vc-hg-incoming () (interactive) (let ((bname "*Hg incoming*")) - (vc-hg-command bname 0 nil "incoming" "-n") + (ignore-errors (vc-hg-command bname 0 nil "incoming" "-n")) (pop-to-buffer bname) (vc-hg-incoming-mode)))