From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#2110: 23.0.60; vc-annotate-revision-previous-to-line fails on git Date: Fri, 30 Jan 2009 22:39:00 -0800 (PST) Message-ID: <200901310639.n0V6d0hS000858@rodan.ics.uci.edu> References: <36366a980901292001x6e4ac843x6406ce5f0e8a261c@mail.gmail.com> Reply-To: Dan Nicolaescu , 2110@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233385428 25808 80.91.229.12 (31 Jan 2009 07:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 07:03:48 +0000 (UTC) Cc: 2110@emacsbugs.donarmstrong.com To: Eric Hanchrow Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 08:05:02 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LT9uV-00018n-U4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 08:05:00 +0100 Original-Received: from localhost ([127.0.0.1]:44716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LT9tD-0006Cm-JQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 02:03:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LT9t9-0006CZ-27 for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 02:03:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LT9t7-0006CF-9A for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 02:03:34 -0500 Original-Received: from [199.232.76.173] (port=44621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LT9t7-0006CC-3O for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 02:03:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46948) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LT9t6-0007RF-GO for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 02:03:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0V73UQC009420; Fri, 30 Jan 2009 23:03:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0V6j2YO004775; Fri, 30 Jan 2009 22:45:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 31 Jan 2009 06:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2110 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2110-submit@emacsbugs.donarmstrong.com id=B2110.12333839803504 (code B ref 2110); Sat, 31 Jan 2009 06:45:02 +0000 Original-Received: (at 2110) by emacsbugs.donarmstrong.com; 31 Jan 2009 06:39:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0V6darg003497 for <2110@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 22:39:37 -0800 Original-Received: from rodan.ics.uci.edu (rodan.ics.uci.edu [128.195.6.9]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n0V6d34x007714; Fri, 30 Jan 2009 22:39:03 -0800 (PST) Original-Received: (from dann@localhost) by rodan.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n0V6d0hS000858; Fri, 30 Jan 2009 22:39:00 -0800 (PST) In-Reply-To: <36366a980901292001x6e4ac843x6406ce5f0e8a261c@mail.gmail.com> (Eric Hanchrow's message of "Thu, 29 Jan 2009 20:01:06 -0800") Original-Lines: 70 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n0V6d34x007714 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@rodan.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 31 Jan 2009 02:03:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24763 Archived-At: Eric Hanchrow writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > Place the following into a file, make it executable, and run it: > > #!/bin/bash > > d=$(mktemp -d) > cd $d > git init > > for i in $(seq 4) > do echo $i > i > git add i > git commit -m $i > done > > cat< bug.el > (find-file "i") > (message "vc-handled-backends: %s" vc-handled-backends) > (call-interactively 'vc-annotate) > (call-interactively 'vc-annotate-revision-previous-to-line) > EOF > > emacs --no-site-file --batch -l bug.el > > The output I see is > > Initialized empty Git repository in /tmp/tmp.OYiYC29959/.git/ > [master (root-commit) df7f76c] 1 > 1 files changed, 1 insertions(+), 0 deletions(-) > create mode 100644 i > [master 767a453] 2 > 1 files changed, 1 insertions(+), 1 deletions(-) > [master b0271d9] 3 > 1 files changed, 1 insertions(+), 1 deletions(-) > [master e46c84d] 4 > 1 files changed, 1 insertions(+), 1 deletions(-) > Warning: Lisp directory `/usr/local/share/emacs/23.0.60/site-lisp' > does not exist. > Warning: Lisp directory `/usr/local/share/emacs/site-lisp' does not exist. > Loading vc-git... > vc-handled-backends: (RCS CVS SVN SCCS Bzr Git Hg Mtn Arch) > Annotating... > Redisplaying annotation... > Redisplaying annotation...done (Spanned from 0.3 to 0.3 days old) > Mark set > Annotating... done > Annotating... > Running git blame undefined i...FAILED (status 128) > > The bug is the failure in the last line. This is because vc-git-previous-revision calls vc-git-symbolic-commit which runs: git name-rev --name-only --tags COMMIT which returns "undefined" running just: git name-rev --name-only COMMIT seems to be better in this particular case. No idea if that's TRTD though...