From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36534: 25.2; mercurial vc-annotate sometimes fails when using the evolve mercurial extension Date: Thu, 26 Nov 2020 12:56:39 +0100 Message-ID: <87360wuya0.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21232"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 36534@debbugs.gnu.org, Dmitry Gutov To: Valentin Gatien-Baron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 12:57:23 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiFtr-0005OP-6j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 12:57:23 +0100 Original-Received: from localhost ([::1]:53110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiFto-0001eG-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 06:57:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiFtY-0001cj-1C for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 06:57:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiFtW-00076y-IN for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 06:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiFtW-0002Qp-I2 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 06:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2020 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36534 X-GNU-PR-Package: emacs Original-Received: via spool by 36534-submit@debbugs.gnu.org id=B36534.16063918169335 (code B ref 36534); Thu, 26 Nov 2020 11:57:02 +0000 Original-Received: (at 36534) by debbugs.gnu.org; 26 Nov 2020 11:56:56 +0000 Original-Received: from localhost ([127.0.0.1]:39889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiFtQ-0002QV-BK for submit@debbugs.gnu.org; Thu, 26 Nov 2020 06:56:56 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:49316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiFtN-0002QH-EQ for 36534@debbugs.gnu.org; Thu, 26 Nov 2020 06:56:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bgQTlkxpFBFFFREt4CItZRJKx8b4gHSVPoQ9B+dkfcQ=; b=UYgA0/K5FBF8X+Et9rXgV74Lsf 4HF0W1UMQUcgnqYa0tVfBQben18eeHPp4Pgyj+f5oqSmTjFYAaaKqXssdnISvBIhvRoA1Wsb1qWkl f1+3Rv8wEWVdnjNMPCfUkPIOdTGpEyoV9fa8iu6/wL0Ik/w7MA1FopPFlOUD8oRPJRhM=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiFtB-0000wr-9k; Thu, 26 Nov 2020 12:56:46 +0100 X-Now-Playing: Japan's _Tin Drum (1)_: "Sons of Pioneers" In-Reply-To: (Valentin Gatien-Baron's message of "Sun, 7 Jul 2019 00:55:51 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194289 Archived-At: Valentin Gatien-Baron writes: > Sometimes, vc-annotate in a file tracked by mercurial returns an > error like this instead of a proper annotate buffer: [...] > Step 3 is probably an hg bug. However `hg parent` was deprecated in > 2014, so people may be reluctant to change it. And it would be simpler > for vc-hg-working-revision to call `hg log -r . -T {rev}` (vc-git does > that, so I assume that it works in general on top of fixing the > current issue). `.` means the current revision, see `hg help revset`. > > So something like this: > (defun vc-hg-working-revision (file) > "Hg-specific version of `vc-working-revision'." > (ignore-errors > (with-output-to-string > (vc-hg-command standard-output 0 nil > "log" "-r" "." "--template" "{rev}")))) (This bug report unfortunately got no response at the time.) I'm pretty unfamiliar with Mercurial, but perhaps Dmitry has some comments here (added to the Cc's). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no