From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#39380: 26.3: Opening files in vc-dir-mode with differing root and working dir fails Date: Mon, 3 Feb 2020 16:11:08 +0300 Message-ID: <09ef5fcb-80b7-3b43-243a-2278b46281ba@yandex.ru> References: <8eea69d2-46ed-0c41-b516-0120251dcc96@gmx.de> <504aedd0-54e5-aa62-b19f-41fbafa9aa17@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 To: Wolfgang Scherer , 39380@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 03 14:12:11 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 1iybWN-0002gy-Hm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Feb 2020 14:12:11 +0100 Original-Received: from localhost ([::1]:40354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iybWM-0001aA-H7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Feb 2020 08:12:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iybWE-0001a4-W9 for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2020 08:12:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iybWD-0000fL-VV for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2020 08:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iybWD-0000fC-SU for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2020 08:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iybWD-0004iu-Ml for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2020 08:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Feb 2020 13:12:01 +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.158073547818088 (code B ref 39380); Mon, 03 Feb 2020 13:12:01 +0000 Original-Received: (at 39380) by debbugs.gnu.org; 3 Feb 2020 13:11:18 +0000 Original-Received: from localhost ([127.0.0.1]:40968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iybVW-0004hf-HJ for submit@debbugs.gnu.org; Mon, 03 Feb 2020 08:11:18 -0500 Original-Received: from mail-lj1-f193.google.com ([209.85.208.193]:35795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iybVU-0004hQ-C0 for 39380@debbugs.gnu.org; Mon, 03 Feb 2020 08:11:16 -0500 Original-Received: by mail-lj1-f193.google.com with SMTP id q8so14571586ljb.2 for <39380@debbugs.gnu.org>; Mon, 03 Feb 2020 05:11:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0Thun8N6gbmowaWvzTusILjfAKmj51Y+2oOZQDIx4Rg=; b=sZPxMatuAWQSPWpYcu9WpoD0Hkro677UFjO2ITWHAojHbnhF6g/zupulFhwx/+1d7Q 3W7FIh+poO1cIRRsF24cMas6UCB8CUv7UXzSrPY/e4TkU1N9gdgu1wn2sOLXY2OgGlEl qQCRYV++qJMKWg6x6y0N0Ai9A0H1njohJNIMM01WJ6XXtWws5jg/RrS4OKpOLa4E1T3U wN+LJiox4E6Bm0xGD3h5tsT2PvUVV3tbx7agoXD6QLaBWeM9fHkNhLKtwnIMAdoVyyoe CkY83HTYt7BN+Dxm8ecno4e23kUkjKlOQeNFbZSZV77ftCLhJI5PfK3oY9Us4ISqJCpy dmtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0Thun8N6gbmowaWvzTusILjfAKmj51Y+2oOZQDIx4Rg=; b=q77i9sBKlVZY3YpRjiVyfqjA8oAI1oZrS51fJS7phwykzO1Ni/MjLztgXl3rIyXK3a 1RR2hlheLrP2b+iVDkVAABGsYofl26Fd/nzgHnRNJXOJQLcbOHvbQym6DmXB328bK2w1 4akxJKRbEpPi2w41dxS7AyZEHnQ1u1As8lct38Ae80vBJWQSokMb4OC1TfZYIQWIolxm R4eHCqw9FAiguwxclHi/7wqltflWG3y0fbMoZTeqxw8tpeGb46n3S1LGmkWWAugyVis+ zNvrfX9Zcsn2BTOfm6eYDjMz4NWnp19UFnNPUDswd7L3sfi8z/BB84/C62gZFXm60Cpp Jc2Q== X-Gm-Message-State: APjAAAVgyFXei5XSr+iA00hu2uZO2pnd1ndxieXIqKySoX7XZnoYG+ph XyVFf1/d7kvtjL6qCLLxALvOJJLRZD4= X-Google-Smtp-Source: APXvYqzK74OGG+KnQu16vIc7xVPFMe3BKaDnjiX2s/nnpzfN3LXUiSw3I3VSoDY3nEvdgJ3UHCA1hA== X-Received: by 2002:a2e:b5d5:: with SMTP id g21mr14062198ljn.89.1580735470241; Mon, 03 Feb 2020 05:11:10 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id f8sm8843621lfc.22.2020.02.03.05.11.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Feb 2020 05:11:09 -0800 (PST) In-Reply-To: <504aedd0-54e5-aa62-b19f-41fbafa9aa17@gmx.de> Content-Language: en-US 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:175630 Archived-At: 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 from "Root": >>> >>>     .. code-block:: text >>> >>>        Working dir: check-hgs/sub1/ >>>        Root       : check-hgs >>> >>>                             ./ >>>                             sub1/ >>>        unregistered         sub1/a >>>                             sub2/ >>>        unregistered         sub2/x >> >> Maybe this should be fixed in vc-hg-status-files by not showing "outside" 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 names. > > The behavior should be consistent. Right. > In Emacs 24/25 vc-dir-mode for Mercurial behaved exactly like Git. Since the behavior for Mercurial changed some time after Emacs 24, I just assumed (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 commands (de76a167dc09dc695a5acebabb7ab354a6bf556e) since apparently Hg itself was too slow. So this bug must have arrived with that implementation.