From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#5846: 23.1.95.1 problems with mercurial commands in *VC Annotate* buffer on Windows Date: Tue, 20 Apr 2010 15:13:42 +0100 Message-ID: References: <4BBB3A2D.8010504@gmail.com> <87bpdit6bc.fsf@stupidchicken.com> <84y6gjnrdv.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271773779 30737 80.91.229.12 (20 Apr 2010 14:29:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 14:29:39 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 20 16:29:38 2010 connect(): No such file or directory 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 1O4ESC-0004ak-5S for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 16:29:32 +0200 Original-Received: from localhost ([127.0.0.1]:36930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ESB-000455-Ja for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 10:29:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4ES6-00044u-Mj for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:29:26 -0400 Original-Received: from [140.186.70.92] (port=49514 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ES5-00044U-AR for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4ERw-0006sw-44 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:29:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59122) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4ERw-0006ss-2W for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:29:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4EEA-00067Z-Tw; Tue, 20 Apr 2010 10:15:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <4BBB3A2D.8010504@gmail.com> Resent-From: Andy Moreton Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Apr 2010 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127177285023507 (code B ref -1); Tue, 20 Apr 2010 14:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2010 14:14:10 +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 1O4EDJ-000676-K1 for submit@debbugs.gnu.org; Tue, 20 Apr 2010 10:14:09 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4EDG-00066z-VG for submit@debbugs.gnu.org; Tue, 20 Apr 2010 10:14:08 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:57950) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O4EDB-00034P-20 for submit@debbugs.gnu.org; Tue, 20 Apr 2010 10:14:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4EDA-0006Ok-7D for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:14:00 -0400 Original-Received: from [140.186.70.92] (port=51408 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ED8-0006Mg-Gl for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:13:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4ED6-0003ol-AA for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:13:58 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57367) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4ED5-0003oC-VF for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 10:13:56 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O4ED3-0001eo-DM for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 16:13:53 +0200 Original-Received: from 82-69-137-158.dsl.in-addr.zen.co.uk ([82.69.137.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Apr 2010 16:13:53 +0200 Original-Received: from andrewjmoreton by 82-69-137-158.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Apr 2010 16:13:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 60 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-137-158.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (windows-nt) Cancel-Lock: sha1:pmgfAIUCZI1zB043kpp+cOoIfKY= X-detected-operating-system: by eggs.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: Tue, 20 Apr 2010 10:15: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:36361 Archived-At: On Mon 19 Apr 2010, Andy Moreton wrote: > On Sat 17 Apr 2010, Chong Yidong wrote: > >>> In GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600) >>> >>> Using Mercurial from TortoiseHg 0.9, which contains Mercurial-1.4, >>> Python-2.5.4, PyGTK-2.12.1, GTK-2.16.1 >>> >>> Start emacs with "c:\emacs\23.1.95\bin\emacs -Q" >>> Open a file from a mercurial repository >>> Type "C-x v g" to annotate the file >>> >>> In the *VC Annotate* buffer: >>> 1) Type "l" (vc-annotate-show-log-revision-at-line) >>> The Hg command runs, but the *vc-change-log* buffer is empty >>> >>> 2) Type "f" (vc-annotate-find-revision-at-line) >>> Emacs displays a message "Cannot open load file: vc-nil" >> >> It looks like this is the same bug as the one just fixed in >> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5960 >> >> You can find the patch there, and it will be included in the next >> pretest. >> >> Thanks for the bug report. > > I've rebuilt emacs from the emacs-23 branch today, and the problems are > still there. In addition, the modeline display shows "Hg-" suggesting that > emacs is not correctly detecting the working revision of the file. Ive retested with the 23.1.96 pretest tarball, and have found the problem. In vc-hg-working-revision (in vc-hg.el): (let ((process-environment avoid-local-env)) ;; Ignore all errors. (process-file "hg" nil t nil "parent" "--template" "{rev}" (file-relative-name file))) 1) TortoiseHg does not seem to honour the "HGRC=" set in `avoid-local-env'. for local configration it reads some of the the following config files: %ProgramFiles%\TortoiseHg\Mercurial.ini %USERPROFILE%\mercurial.ini %HOME%\.hgrc 2) I had the following setting in "~/.hgrc": [alias] parenttag = parents --template "{latesttag} +{latesttagdistance}\n" The combined effect is that TortoiseHg read my ~/.hgrc file, thus making the "hg parent" command ambiguous (could be "parents" or "parenttag"). `vc-hg-working-revision' should use "hg parents" to make the command unambiguous. AndyM