`vc-hg-command' because hg returns status 1 when nothing is found.
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>
(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)))