GNU bug report logs -
#34532
Unhandled errors in vc
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Mon, 18 Feb 2019 21:42:02 UTC
Severity: normal
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
After āC-x v gā (vc-annotate) typing āaā (vc-annotate-revision-previous-to-line)
in the *Annotate* buffer on the earliest (initial) revision fails with:
Debugger entered--Lisp error: (error "Invalid argument to vc-annotate-warp-revision")
signal(error ("Invalid argument to vc-annotate-warp-revision"))
error("Invalid argument to vc-annotate-warp-revision")
vc-annotate-warp-revision(nil "...")
This patch provides a nicer message:
[vc-annotate.el.patch (text/x-diff, inline)]
diff --git a/lisp/vc/vc-annotate.el b/lisp/vc/vc-annotate.el
index 86fc8686c3..84838135fc 100644
--- a/lisp/vc/vc-annotate.el
+++ b/lisp/vc/vc-annotate.el
@@ -541,7 +541,9 @@ vc-annotate-revision-previous-to-line
(setq prev-rev
(vc-call-backend vc-annotate-backend 'previous-revision
fname rev))
- (vc-annotate-warp-revision prev-rev fname)))))
+ (if (not prev-rev)
+ (message "No previous revisions")
+ (vc-annotate-warp-revision prev-rev fname))))))
(defvar log-view-vc-backend)
(defvar log-view-vc-fileset)
This bug report was last modified 6 years and 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.