From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Wolfgang Scherer Newsgroups: gmane.emacs.bugs Subject: bug#39380: 26.3: Opening files in vc-dir-mode with differing root and working dir fails Date: Tue, 4 Feb 2020 17:04:10 +0100 Message-ID: <5c7d9eab-59d1-21c1-c8e5-1c820cb2946b@gmx.de> References: <8eea69d2-46ed-0c41-b516-0120251dcc96@gmx.de> <504aedd0-54e5-aa62-b19f-41fbafa9aa17@gmx.de> <09ef5fcb-80b7-3b43-243a-2278b46281ba@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="81983"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 To: Dmitry Gutov , 39380@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 04 17:05:43 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 1iz0hq-000LBl-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 17:05:43 +0100 Original-Received: from localhost ([::1]:60860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz0hp-0007wm-PH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 11:05:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36596) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz0hD-0007tB-Ni for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 11:05:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz0hC-0000i4-JV for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 11:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iz0hC-0000hP-B8 for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iz0hC-0003Mv-6D for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 11:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Wolfgang Scherer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Feb 2020 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39380 X-GNU-PR-Package: emacs Original-Received: via spool by 39380-submit@debbugs.gnu.org id=B39380.158083226612906 (code B ref 39380); Tue, 04 Feb 2020 16:05:02 +0000 Original-Received: (at 39380) by debbugs.gnu.org; 4 Feb 2020 16:04:26 +0000 Original-Received: from localhost ([127.0.0.1]:44607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz0gc-0003M5-Kq for submit@debbugs.gnu.org; Tue, 04 Feb 2020 11:04:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:37273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz0ga-0003Lp-B8 for 39380@debbugs.gnu.org; Tue, 04 Feb 2020 11:04:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1580832252; bh=VND5UM2IPxGHk1LkcDWFtLxX7YsVlKlYcERDJrOvdrw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=iFICBTVT4bp1T5iNpxFpwejLCL47w+laIT+Co95ri2MJW7Pwyy+FZij1FvF+Ky2sV EBTp6YdnE3DJlBBH+YGZsAZuI0NogRg4daHuvlGY47YS6ASOtSmxRszrxc5W8YtsS2 yyglgHTLDRvWdmOcVu5ed9pJylU8LBFqcrgzDuts= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from sheckley.simul.de ([87.160.210.52]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MxlzC-1jkmCw1hTq-00zH0B; Tue, 04 Feb 2020 17:04:12 +0100 Original-Received: from [127.0.0.1] (sheckley.simul.de [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sheckley.simul.de (Postfix) with ESMTPSA id E8FAA19431C5; Tue, 4 Feb 2020 17:04:10 +0100 (CET) Openpgp: preference=signencrypt Autocrypt: addr=Wolfgang.Scherer@gmx.de; prefer-encrypt=mutual; keydata= xsDiBEb46IgRBACMHOAb1KNo1Ylk+ebri+4R+bG4tyKlqBlrpv8D9/ZwRdXSGt+0DyCHoaAd 7KW7noHapLe87DunABOjKG4nqTGv+dRiWuUBlp3I4aYRFDVa3Da+XnIYkMHKqhK59VEHQCdp Km42nuLS7TS+n99at9YwzTG6VBdOlBKTlRFngOjVLwCg1RGXJ6X3EjS1FKCQeXziURVpWlkD /2zY6Ayhxi62TS84VjikXrrmjXykAAaAmMVEyKKYb9L5pGlqiZz9g/K9xw1EUoZTYuaufquD v4rAGR58K/3V4CYfJLEeshMWiaXHvMmlxMznlG16/um4MvmR8B3r+cx0nOPK1JBdD2qrkNnF Mw8FB+zouLFB4Gt2IUC5IlOmZ8OQA/4qdU53CItzWsCr9Nux4L0qUlRweSmCnV8xGQ2wP5XI MawIQxxREvSrsYDG8cNnYETMg4iQFfIktwAoxCJvuFAwIB6ZxHGF4FcEZm64CXc2u7CmFLqt rVhXhIfMz9oEYC+HhGczGamn9ofbGTFd2hJEtPcQgWNR4f7+aKknmi2+OM0fV29sZmdhbmcg U2NoZXJlciA8d3NAc3ctYW10LndzPsJhBBMRAgAhBQJYmz3YAhsjBQsJCAcCBhUICQoLAgQW AgMBAh4BAheAAAoJEIUCr3Gr112VZZoAoLTBSTp1qGuNhLdXY04iaWCMYmHCAJ4kHPtQ6nTw kEq9qCHgVgXDaY7wjs7ATQRG+OiIEAQAhi0wjcxvA4tychg2NQuwBIf9LX/46l+74+QbewCn a4a+mw/9s5KY In-Reply-To: <09ef5fcb-80b7-3b43-243a-2278b46281ba@yandex.ru> Content-Language: de-DE X-Provags-ID: V03:K1:tuwTRoPCMJBxJp9OdhtqGeFsJDeN89hcfKDkphyhZ6hc6HCtOdG i+VY6XjjUgMu13GmZbGi16deLEuu2VZNbhEjdkPMOucuwXLId0YeSWibn7TDin4JSMzfSYt q5tD1ZliXLCV9PHOtWN0l1MD+tGeQ002C+/3ECKW0AeN1vlW8Ul2RdPQEkYSH0vaXLC8cMI DF+wrFSgf53LlOeWGnGYA== X-UI-Out-Filterresults: notjunk:1;V03:K0:rIUYNyNxzTY=:DcLUuNuXFMpcTdLMu9hPXL CwhQOTLe8EAfP/rZcolkKHZgL/e/vqGGIhWk10BH4IMEkbJe507PJJogkHeY2/3kNjRRM8Hgq 4v67/a69aHd0XA1Eji1+udmTUliow8cxPzOcVq0YB9ep2Lshb2+uEgzM5OXVbKlWnX1kV+x0J TRi+vjTQVaz9CiP5iqDzqjbSNfiqSJkRcjj/DoZ/2ZqotnT5ljAhbn3+RMJkjSL12scO6kv51 t3PNDNh30QQCTkeuebR/jrpftIwlITioKwMqly6Oo1snNIH0OsBo7PrYEddNiVhu4UH7PL8F4 2Y+m3hSB2Sgjc0p73/Y57jmdjmhDycYBdgAohFpbuqSjKKUewApQL7hsr8Q1HRy4H3f47Wl1q XD7FLL0gUyYL4WZf/18i+fTNAPqv0ik3YSQ6xy59tdhD7/IuoORuzoBNjYcN36Dyvubru1YNl uZVvY87k7Lco8u+yZxdDjTSIgX836IatXUVuFKO9qO8d9HSYoSCal81vUYGFY4HagLu6o/jiR 0rpWIOPpvGc3K2/jDLSZGVf8Gi2Zzx5hZYQhRx1TP1EzVcU7JCLQzdu6yMApiGqYybwp80v3e kvCCTs1oPducET7HkUMpV4xNFabkRY122+kQLK/ocKt3ZLUuNRPAoUo0ebkv3l6yugFNjueag bukeQ+GF/ZbtqqPB276PVKF+3YKRu8mZ9uFraM3sY4yxS52foj2LOC5gr8bsbG4R+hozbv6NZ 0aYSHHZRwbbq9Zqu4LGmGQHh4etp60UJwBzlroikcdWaMlFoe64EfvJangndEOfx3a+Jy0vP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:175668 Archived-At: Am 03.02.20 um 14:11 schrieb Dmitry Gutov: > On 03.02.2020 1:35, Wolfgang Scherer wrote: >> >> Am 01.02.20 um 08:20 schrieb Dmitry Gutov: >>> On 01.02.2020 3:13, Wolfgang Scherer wrote: >>>> 3. Press `C-x v d RET`, which will show a "Working dir" different fro= m "Root": >>>> >>>> =C2=A0=C2=A0=C2=A0=C2=A0 .. code-block:: text >>>> >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Working dir: check-hgs/sub= 1/ >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Root=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 : check-hgs >>>> >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ./ >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 sub1/ >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unregistered=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sub1/a >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 sub2/ >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unregistered=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sub2/x >>> >>> Maybe this should be fixed in vc-hg-status-files by not showing "outsi= de" files and using proper relative names. >>> >>> Compare how VC-Dir works with Git: when you open it in a subdirectory,= it only shows changed files in that directory, and with proper relative n= ames. >> >> The behavior should be consistent. > > Right. > >> In Emacs 24/25 vc-dir-mode for Mercurial behaved exactly like Git. Sinc= e the behavior for Mercurial changed some time after Emacs 24, I just assu= med (probably because of my bias towards `dvc`) that the new behavior was = intended. > > In 25 or 26 Daniel added a Lisp-based faster implementation for some com= mands (de76a167dc09dc695a5acebabb7ab354a6bf556e) since apparently Hg itsel= f was too slow. > > So this bug must have arrived with that implementation. Reverting de76a167dc09dc695a5acebabb7ab354a6bf556e does not change anythin= g for me. I had to revert 06083cf41c473404d246de9b91a0116f38c5485f to restore the co= rrect behavior: Author: Dmitry Gutov Date:=C2=A0=C2=A0 Sat Jan 30 06:55:32 2016 +0300 =C2=A0=C2=A0=C2=A0 Don't pass DIR to 'hg status' =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 * lisp/vc/vc-hg.el (vc-hg-dir-status-files): =C2=A0=C2=A0=C2=A0 Don't pass DIR to 'hg status' (bug#22481).