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#6487: using vc-annotate-find-revision-at-line for renamed/removed files Date: Mon, 21 Jun 2010 16:41:29 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277153951 27138 80.91.229.12 (21 Jun 2010 20:59:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2010 20:59:11 +0000 (UTC) To: 6487@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 21 22:59:09 2010 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.69) (envelope-from ) id 1OQo5E-0007yP-TE for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jun 2010 22:59:09 +0200 Original-Received: from localhost ([127.0.0.1]:36367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQo5D-0005fp-Se for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jun 2010 16:59:07 -0400 Original-Received: from [140.186.70.92] (port=45875 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQo55-0005ct-8q for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:59:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQo50-0005FZ-VT for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:58:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50225) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQo50-0005FV-Ty for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:58:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OQnog-0007JS-K2; Mon, 21 Jun 2010 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jun 2010 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6487 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127715289728099 (code B ref -1); Mon, 21 Jun 2010 20:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jun 2010 20:41:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQnoH-0007J9-Iw for submit@debbugs.gnu.org; Mon, 21 Jun 2010 16:41:37 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQnoF-0007J2-90 for submit@debbugs.gnu.org; Mon, 21 Jun 2010 16:41:35 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:50345) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OQnoB-0000mH-24 for submit@debbugs.gnu.org; Mon, 21 Jun 2010 16:41:31 -0400 Original-Received: from [199.232.76.173] (port=40471 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQnoA-00020F-Jk for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:41:30 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OQno9-0000mB-MN for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:41:30 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:56320) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OQno9-0000m7-G4 for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:41:29 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OQno9-0001iK-CL for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2010 16:41:29 -0400 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 21 Jun 2010 16:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:37935 Archived-At: vc-annotate for git and mercurial shows the original file name for a change, even if the file has been renamed meanwhile. Using `vc-annotate-find-revision-at-line' on such a line in the annotate does not work vc-annotate-find-revision-at-line calls vc-find-revision for a file that does not exist anymore. vc-find-revision in turn does a: (vc-call find-revision file revision outbuf) but given that the file does not exist anymore, no VC backend claims the file, so the vc-call fails vc-annotate-find-revision-at-line knows what VC backend it needs to call, so it could pass it as an optional argument to vc-find-revision.