]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-hg-outgoing, vc-hg-incoming): use okstatus instead of ignore-errors
authorSam Steingold <sds@gnu.org>
Tue, 22 Sep 2009 23:48:19 +0000 (23:48 +0000)
committerSam Steingold <sds@gnu.org>
Tue, 22 Sep 2009 23:48:19 +0000 (23:48 +0000)
lisp/ChangeLog
lisp/vc-hg.el

index cebb444e380d10014299d8c3e161ca5df36c4007..d7a0790428e49afca4f2238bde7d73789bef1422 100644 (file)
@@ -1,8 +1,8 @@
 2009-09-22  Sam Steingold  <sds@gnu.org>
 
        * 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.
+       (vc-hg-outgoing, vc-hg-incoming): Bump okstatus in `vc-hg-command'
+       to 1 because hg returns status 1 when nothing is found.
 
 2009-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 80f130bd565784a3eee0b8bea575e1a749491d7d..e021178624b9b688abe4fd86d0cd6cb3f3eaf24e 100644 (file)
@@ -570,14 +570,14 @@ REV is the revision to check out into WORKFILE."
 (defun vc-hg-outgoing ()
   (interactive)
   (let ((bname "*Hg outgoing*"))
-    (ignore-errors (vc-hg-command bname 0 nil "outgoing" "-n"))
+    (vc-hg-command bname 1 nil "outgoing" "-n")
     (pop-to-buffer bname)
     (vc-hg-outgoing-mode)))
 
 (defun vc-hg-incoming ()
   (interactive)
   (let ((bname "*Hg incoming*"))
-    (ignore-errors (vc-hg-command bname 0 nil "incoming" "-n"))
+    (vc-hg-command bname 0 nil "incoming" "-n")
     (pop-to-buffer bname)
     (vc-hg-incoming-mode)))