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: Fri, 7 Feb 2020 14:03:21 +0300 Message-ID: <38ea415e-9993-806c-3006-85e6e435fbd5@yandex.ru> References: <8eea69d2-46ed-0c41-b516-0120251dcc96@gmx.de> <504aedd0-54e5-aa62-b19f-41fbafa9aa17@gmx.de> <09ef5fcb-80b7-3b43-243a-2278b46281ba@yandex.ru> <5c7d9eab-59d1-21c1-c8e5-1c820cb2946b@gmx.de> <25183dd6-10b3-c3c4-0910-262c70434161@gmx.de> <0a8b11c8-1c5c-33ed-e5a1-e7ad5b090929@yandex.ru> <834kw2g1ur.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="4593"; 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 Cc: 39380@debbugs.gnu.org, Wolfgang.Scherer@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 07 12:04:24 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 1j01Qt-00013W-Vb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Feb 2020 12:04:23 +0100 Original-Received: from localhost ([::1]:54038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01Qt-0006Jv-1w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Feb 2020 06:04:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01QZ-0006Cq-PF for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 06:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01QY-0000Ba-OX for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 06:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42958) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01QY-0000BU-KK for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 06:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j01QY-0004bA-HF for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 06:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2020 11:04: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.158107341117607 (code B ref 39380); Fri, 07 Feb 2020 11:04:02 +0000 Original-Received: (at 39380) by debbugs.gnu.org; 7 Feb 2020 11:03:31 +0000 Original-Received: from localhost ([127.0.0.1]:48931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j01Q3-0004Zv-1s for submit@debbugs.gnu.org; Fri, 07 Feb 2020 06:03:31 -0500 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:38743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j01Q1-0004Zb-Ge for 39380@debbugs.gnu.org; Fri, 07 Feb 2020 06:03:29 -0500 Original-Received: by mail-lf1-f44.google.com with SMTP id r14so1251818lfm.5 for <39380@debbugs.gnu.org>; Fri, 07 Feb 2020 03:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w4wtz17QMaxUqtJOGDLny8jKxg/2AMjMEr9fOAVnUrM=; b=hliomobI5JcfRVijasWJHRYumvFqDu715wMIQmmr36betJcGpz6jMzHYloP6/AXqNP UG9mKdVv7/VK4aFgGgVENlTvwRyZTVBobp4WnjarLJB+M3tkbuhyW1kKMxljDyQEnez7 pZM14bX02w10zZlEo7TpnUslcxpoVXKhbcV/rU10sSD3Q21PRkVXhhCmrKJraagrIL9d mMCXOJLzKw+bIyQe9LaEWG8sV3DqbyBsZr4FxIV1l2C9MkJMUfGo83veXB9Ox/ZYBMXQ uV2cGyyNtW8s26ERVp491y/7uZzVcCdeEggLFY6OuQrHeTEnsFIfjnXJi62wlzQBX2Y9 20SQ== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w4wtz17QMaxUqtJOGDLny8jKxg/2AMjMEr9fOAVnUrM=; b=Cuw/SAeV9PuzVoRRdQGD4TDoHmNJ9qfis6X+5UVLSDTsFLD6TPGzSLxbfZoUU6bP5W ii2KCjsBeZf97D+XrH3+fwNRRHlTDmjX9umXOsLq0SeiKFqTpGVbeccNjlDCxaVv+Flb m7sv5eaioyyQjbshaF30UdPx6YmUdgINhL5RruSPOWzCG7upyYXjr5cHpAne3/zOLNf5 p+W7F5Q2iEZ6c25rM8WR29FyVjsvUm/O+8Eqn0NiU4BbG2KZmZpWEO4j/sn8AfOGjaxn poQgVYUkfbBvhzzN4seLszKurLplNCJKP5AyENuDQlinppD9C7ZmYt0Dswd+6n6cJUf4 wRfQ== X-Gm-Message-State: APjAAAVvuM2cCxq1FID917lNDXFA3o5DEZeqHb4j6mZYse09VlMoxxCi a9vxYKF15d1ey9sHwAoxmvE= X-Google-Smtp-Source: APXvYqwo2AFaWZrFFwHe7tnrBMaSLbcyhw223v9f6Gh2o5RH/ybYYVetpyYt8RpjsGGxJiWvjxpcew== X-Received: by 2002:ac2:58fa:: with SMTP id v26mr4235333lfo.84.1581073403506; Fri, 07 Feb 2020 03:03:23 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id q24sm898692lfm.78.2020.02.07.03.03.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2020 03:03:22 -0800 (PST) In-Reply-To: <834kw2g1ur.fsf@gnu.org> 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:175746 Archived-At: On 07.02.2020 12:53, Eli Zaretskii wrote: > I'll have to ask you to walk me through the change and explain how it > solves the original issue. There are two changes: 1. Having the returned file names relative to the working dir instead of the repository root. For that, we change 'hg status' to 'hg status re:'. 2. Only including the files inside the working dir in the output. That happens by adding '-I .' to the arguments. Otherwise, Mercurial adds, in the presented scenario, an entry like '../sub2/x', which is extraneous. > the Mercurial documentation I've read seems > to contradict what you are doing (e.g., it says "re:" should be > immediately followed by a regexp). You can search the manual for "hg status re:". I agree it's a bit unclear (it also mentions "hg help patterns" for some reason), but here's an SO answer that got me this far: https://stackoverflow.com/a/46743585/615245