From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#23436: [PATCH] Attemp to use the true name of a file to determine responsible vc if the genuine name does not work. Date: Wed, 19 Oct 2016 17:16:58 -0700 Message-ID: References: <1462311145-5959-1-git-send-email-hong@topbug.net> <85f11f8a-1799-befd-3e5b-f7d7a6eac660@topbug.net> <072a649f-d11a-7c82-b3ae-32d9a92c8f8b@topbug.net> <5d653522-49bd-8b48-e3d6-0c09d1c65fae@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JCgWTtMLRSFcOcH777pMdTjVWacXB2pXA" X-Trace: blaine.gmane.org 1476922703 27426 195.159.176.226 (20 Oct 2016 00:18:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 00:18:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 To: Dmitry Gutov , 23436@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 02:18:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx13k-0005fp-4L for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 02:18:12 +0200 Original-Received: from localhost ([::1]:51694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx13m-0006tI-DC for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2016 20:18:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx13f-0006t0-Ou for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 20:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx13a-0002bU-Qi for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 20:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bx13a-0002bI-Me for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 20:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bx13a-0007Z7-8u for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 20:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2016 00:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23436 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23436-submit@debbugs.gnu.org id=B23436.147692263829029 (code B ref 23436); Thu, 20 Oct 2016 00:18:02 +0000 Original-Received: (at 23436) by debbugs.gnu.org; 20 Oct 2016 00:17:18 +0000 Original-Received: from localhost ([127.0.0.1]:40170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx12r-0007Y9-Nc for submit@debbugs.gnu.org; Wed, 19 Oct 2016 20:17:17 -0400 Original-Received: from sender163-mail.zoho.com ([74.201.84.163]:21315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx12q-0007Y1-2H for 23436@debbugs.gnu.org; Wed, 19 Oct 2016 20:17:16 -0400 Original-Received: from [10.120.10.85] (guest-wireless-207-151-035-036.usc.edu [207.151.35.36]) by mx.zohomail.com with SMTPS id 1476922628541645.2695014676456; Wed, 19 Oct 2016 17:17:08 -0700 (PDT) In-Reply-To: <5d653522-49bd-8b48-e3d6-0c09d1c65fae@yandex.ru> X-Zoho-Virus-Status: 1 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124701 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JCgWTtMLRSFcOcH777pMdTjVWacXB2pXA Content-Type: multipart/mixed; boundary="xlgvI6oqEsq4hmLUeGFs7o8rRcsCpO4Jk"; protected-headers="v1" From: Hong Xu To: Dmitry Gutov , 23436@debbugs.gnu.org Message-ID: Subject: Re: bug#23436: [PATCH] Attemp to use the true name of a file to determine responsible vc if the genuine name does not work. References: <1462311145-5959-1-git-send-email-hong@topbug.net> <85f11f8a-1799-befd-3e5b-f7d7a6eac660@topbug.net> <072a649f-d11a-7c82-b3ae-32d9a92c8f8b@topbug.net> <5d653522-49bd-8b48-e3d6-0c09d1c65fae@yandex.ru> In-Reply-To: <5d653522-49bd-8b48-e3d6-0c09d1c65fae@yandex.ru> --xlgvI6oqEsq4hmLUeGFs7o8rRcsCpO4Jk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/19/2016 04:58 PM, Dmitry Gutov wrote: > On 20.10.2016 02:49, Hong Xu wrote: >> On 10/19/2016 04:37 PM, Dmitry Gutov wrote: >>> On 19.10.2016 22:33, Hong Xu wrote: >>>> + (dolist (file-path (list file (file-truename file))) >>> >>> Why not just use the true name? >> >> Because sometimes we track symlinks specifically. The symlink files ma= y >> link to a file in a different repo, for example a git submodule. >=20 > I'm not sure I understand. Please outline a problem scenario. mkdir my-repo && cd my-repo hg init git clone git://git.savannah.gnu.org/emacs.git ln -s emacs/README README_emacs hg add README_emacs README_emacs is tracked in the repo "my-repo" but README is tracked in the emacs repo. If true name is directly used, we would fail to obtain the correct responsible backend. --xlgvI6oqEsq4hmLUeGFs7o8rRcsCpO4Jk-- --JCgWTtMLRSFcOcH777pMdTjVWacXB2pXA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYCA0DAAoJECZsfTOCL4R4EmMQAKu7XU0Bk674h4HOShc7rM7b 2UCluF5PEAiHslLcMVecb9D9FriW6tn71SfsuWiYPDE2qfiYrUMyggIidZgO+GIY NbtQrjMOoTfpkpa0g+HdIYefMVo1S5zwn3DJpcdN+rRej6kFIcUcN2i70Y2cfwO5 Cr0bgRdy5WaLNyc+oC5vKsECAljRK4f05fegIlQcwC1K4MvtBFnZPk2Tvhjy9OFT 7w7Zaoo7XX1L+LG7ed44MmLjohevzKIAFREElFkcnOUlxbbHI19KuCf9hyMkG3DD QBwu+zjp67MTWijb01CuusmWWVoWA7cC5uAz98GPlR442/g0KUWVFkJOdf1Vd5Rb VrwIFDBjA2WsN1r134oWYYokE7eB17L1+9H+fDnbUHKoHSS91L+LTrjsqn3rQs8E vH1zkSJTP8kCWkmFdCiL4g0k5McOqLCKJVgCnBo9yc/dQLdIGoq6LzwamGcRtb08 5Ob9/TF4zK6Q2S3EkEclqB+XF6/eQXlxstLMQwIrzgEcylOYsbZu5t0Z1v3RIydJ 7tDZb6tTVH8u1FJAfDC4vS/5EoPjwZRyc0FZtV6aw98kuuUkuXoWrDO5WnesaTcU axyn6vIWBXE7B9Eq+PE9cAOa4HnKP7zbWrfsTdtfBkqg8i4bj6bIke18K3vPj/BY w7CNn0qM4gxoILtDa1om =xeNR -----END PGP SIGNATURE----- --JCgWTtMLRSFcOcH777pMdTjVWacXB2pXA--