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#37189: 25.4.1: vc-hg-ignore implementation is missing Date: Sun, 23 Feb 2020 00:32:27 +0100 Message-ID: <399989e5-33b5-ae00-6f29-16bc7dfa674c@gmx.de> References: <1ba53ae2-42a4-3ab3-d4f2-2ceae565d198@gmx.de> <83h806gp2w.fsf@gnu.org> <8336bmg1o9.fsf@gnu.org> <2354821b-5c1e-f9e3-3a64-4ff978ded33b@gmx.de> <83sgjkdev5.fsf@gnu.org> <3fb73dbc-bf31-233b-4afc-2147c4ffd5b7@gmx.de> <5622487d-a21f-49cf-5420-21f87415af4f@gmx.de> <83wo8ubfbo.fsf@gnu.org> <83zhdpqbas.fsf@gnu.org> <2c8419ae-723d-c7ae-a60e-59d1b1cbc2c1@gmx.de> <83o8u3r6wg.fsf@gnu.org> <6f3ba261-e1f9-cf19-cc22-ec8c24cf3298@gmx.de> <83blq2qzqp.fsf@gnu.org> <83ftfdplo8.fsf@gnu.org> <9929b44f-37da-23c8-16cc-c6ca89602149@yandex.ru> <2f84ddff-3275-6eb1-01ae-ff1d28b6e8da@gmx.de> <835zfzjcbv.fsf@gnu.org> <83lfouitis.fsf@gnu.org> 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="116356"; 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 Cc: 37189@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 23 00:33:40 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 1j5eHC-000UAI-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Feb 2020 00:33:38 +0100 Original-Received: from localhost ([::1]:47978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5eHB-0006wV-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Feb 2020 18:33:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55246) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5eGd-0006vA-9u for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 18:33:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5eGc-0000yA-7t for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 18:33:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5eGc-0000y0-4d for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 18:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5eGc-0006lZ-1C for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 18:33: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: Sat, 22 Feb 2020 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37189 X-GNU-PR-Package: emacs Original-Received: via spool by 37189-submit@debbugs.gnu.org id=B37189.158241435825976 (code B ref 37189); Sat, 22 Feb 2020 23:33:01 +0000 Original-Received: (at 37189) by debbugs.gnu.org; 22 Feb 2020 23:32:38 +0000 Original-Received: from localhost ([127.0.0.1]:50214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5eGE-0006ku-3g for submit@debbugs.gnu.org; Sat, 22 Feb 2020 18:32:38 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:56077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5eGC-0006kg-0f for 37189@debbugs.gnu.org; Sat, 22 Feb 2020 18:32:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582414349; bh=GIDbX0Ucw+Fc5XCs334wdOwEhDlpwuVQSfnOcpB9D2w=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=bZPMYXr0JtYxRUlFNCpgx6Va873jidNeXr2YKEPFLbFWuVRHdyt9oZNEViAghhZ5L J6zptaASoDKGuiCXbu7/iVN7kMkF1g4a8ApNRfc2bTd8iuliUuOWO0j3VJbhYpUh4n ZLIbxYwxnRlnyz2102sh5R0Jc3PIwbuT12Z6Ai20= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from sheckley.simul.de ([87.160.210.52]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBm1U-1jHi1B1sxI-00C8vQ; Sun, 23 Feb 2020 00:32:29 +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 55B4419431F2; Sun, 23 Feb 2020 00:32:27 +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: <83lfouitis.fsf@gnu.org> Content-Language: de-DE X-Provags-ID: V03:K1:urb7lrioWs3G7gIdgcQTkpFBZ+dBtIuRu05Y0yVtp9/NLVAblBg HlJPM0dxFgoWxM9gM6k4fCxk8iwaIW5qgZQJRz/KSVyBu8zeWVP4AjUhu2ddRDxGsOAm/0v 5VbVe5dTI9lKgmuNle1mlKwZpUDT773/mPo2k3n/IvkzUQ3P0uXGNQ5wNSMCwioNqGcgpz1 ZTx3sOky2u72iJs7KqUHw== X-UI-Out-Filterresults: notjunk:1;V03:K0:9c5MymIaW0Q=:qshJDCIlHClBAvyI9udkgg UNs35Iyv2QdBRbaqInVEnJt9FGkpeWZQ51GZ5ogx9iqNwAD30dMkbMJ1s53zHi7pn4bgQMIYJ GadF9gSAoxAjLUzct94675OUlFW3ziY6m2yx7eQLgypqGtNwvQ57pwycOtK7CSdTQo547UZBq iQzol5fXKgrDDwNjBwPHyzEvZFWuMVEY9KDgIyl2bxn2SodQzMQUWU0ZlR5ZlWxcH1Ca8vyj7 Zu6yc4QTgfrzGxKONExEH5IlvPlm6wy/hS8ksPBKUAhXTHy95wK7SzT+S7tEYYvixLY6+UioC kQ9MYPJnLOhMp1ehzdihcUyR52opVupjzQgM389yQtq+V4Pq6GVpwxVTXdcmVVpUOeyJ9j1Nl 52zTyne1+yrvSwEiXnoPV1l4ZX+BCtaRIS86JLRyMHPmC36C33VNkEYxPYNUTov55o84+RWK+ vK6ZydrARsZzOTGY2oilvCUQTXB/cPczjs49YkduG+6zHHVYtix5k/uSSN7DYsKLCXfhEkEkp 97hjB49s6FswURTj6C21PlPGIK1KRrcaRRQrqmWKl0ClvpFsueMbeZsnWHDaD4AahDfs8eSpA ZEU95hOvjlvZRdmhtimkzavcy8uIWtZb3qi4fuKsn6sV4Tn+3FeWqfICtznum16PEmH6qgy/n 4tp5pdxSGd2xMrysiuCSSsStSC9J5kgONO1NbeeCkiXlPmwmzr/IAatlVLhmg7Ros/g/ZVphB Em564S7nSofr8jy3htwkFyFLZzfqk92nLE2KOSWw4Yh1CCFPVHx6tpalKH2G0y56xijVTDbc 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:176406 Archived-At: Am 22.02.20 um 15:30 schrieb Eli Zaretskii: >> Cc: dgutov@yandex.ru, 37189@debbugs.gnu.org >> From: Wolfgang Scherer >> Date: Sat, 22 Feb 2020 14:46:16 +0100 > When I actually try this, I see something that confirms my > understanding: > > ~$ mkdir src_vcs > ~$ cd src_vcs > ~/src_vcs$ mkdir .src > ~/src_vcs$ touch file1 > ~/src_vcs$ mkdir t1 > ~/src_vcs$ touch t1/file1 > ~/src_vcs$ src status t1/file1 > ? t1/file1 > ~/src_vcs$ cat > .srcignore > t1/file1 > ^D > ~/src_vcs$ src status t1/file1 > I t1/file1 > ~/src_vcs$ src status -a > ? .srcignore > ? file1 > ? t1 This is to be expected from the way glob(3) works and the way SRC is progr= ammed. How do you jump to the conclusion, that this particular case is an indicat= ion that SRC works like Git, when most other evidence points to the opposite? What about the unwillingness of src status -a to recurse into sub-directories, how does that correspond to Git, which can often not be stopped to recurse? =C2=A0 ~/src_vcs$ src status -a t1 =C2=A0 ?=C2=A0=C2=A0=C2=A0 t1 =C2=A0 ~/src_vcs$ src status -a t1/ =C2=A0 ?=C2=A0=C2=A0=C2=A0 t1/ =C2=A0 ~/src_vcs$ src status -a t1/. =C2=A0 ?=C2=A0=C2=A0=C2=A0 t1/. =C2=A0 ~/src_vcs$ src status -a t1/* =C2=A0 I=C2=A0=C2=A0=C2=A0 t1/file1 Also, changing into t1 does not ignore file1 any more, which is obviously inconsistent: =C2=A0 ~/src_vcs$ cd t1 =C2=A0 ~/src_vcs/t1$ mkdir -p .src =C2=A0 ~/src_vcs/t1$ src status -a =C2=A0 ?=C2=A0=C2=A0=C2=A0 file1 Further, if there was a similar pattern propagation as for Git, file1 should be ignored in both directories in this case: =C2=A0 ~/src_vcs$ cat >.srcignore =C2=A0 file1 =C2=A0 ^D =C2=A0 ~/src_vcs$ src status -a =C2=A0 ?=C2=A0=C2=A0=C2=A0 .srcignore =C2=A0 I=C2=A0=C2=A0=C2=A0 file1 =C2=A0 ?=C2=A0=C2=A0=C2=A0 t1 =C2=A0 ~/src_vcs$ src status t1/file1 =C2=A0 ?=C2=A0=C2=A0=C2=A0 t1/file1 And it should not matter, where in the sub-tree the status command is issu= ed: =C2=A0 ~/src_vcs$ cd t1 =C2=A0 /src_vcs/t1$ src status file1 =C2=A0 ?=C2=A0=C2=A0=C2=A0 file1 =C2=A0 ~/src_vcs/t1$ src status ../file1 =C2=A0 ?=C2=A0=C2=A0=C2=A0 ../file1 >> There is also no notion of a root directory, i.e. SRC **never** checks >> a parent directory for ignore patterns, which would be necessary for a >> Git-style glob to work. > The first part is true, but if we invoke "src status" from the root > directory, the .srcignore file there will be read, and as the example > above shows, will have its effect. Right? No, if it is not consistent in all parts of a sub-tree, the behavior is an anomaly, not an indication of intent. So actually you have found a bug, which you should report.