]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-hg-outgoing, vc-hg-incoming): Ignore errors from
authorSam Steingold <sds@gnu.org>
Tue, 22 Sep 2009 18:43:45 +0000 (18:43 +0000)
committerSam Steingold <sds@gnu.org>
Tue, 22 Sep 2009 18:43:45 +0000 (18:43 +0000)
`vc-hg-command' because hg returns status 1 when nothing is found.

lisp/ChangeLog
lisp/vc-hg.el

index dfb3d544456da136beed9e9466ffd45154f57a4b..cebb444e380d10014299d8c3e161ca5df36c4007 100644 (file)
@@ -1,6 +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.
 
 2009-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 597d807e7e75452293b1ba8c1cec691862da0232..80f130bd565784a3eee0b8bea575e1a749491d7d 100644 (file)
@@ -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)))