From owner-freebsd-ports@freebsd.org Tue May 4 09:46:59 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5D8A162BBD2 for ; Tue, 4 May 2021 09:46:59 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FZFNz1xGyz4pPr; Tue, 4 May 2021 09:46:59 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [79.143.240.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 1A19815F1; Tue, 4 May 2021 09:46:59 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:678:ab:0:3356:ef6b:256f:d0c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id AEAC4942D80; Tue, 4 May 2021 09:46:56 +0000 (UTC) Date: Tue, 4 May 2021 11:46:53 +0200 From: Mathieu Arnold To: Stefan Esser Cc: Mathieu Arnold , FreeBSD ports Subject: Re: [SOLVED?] Recovery of deleted ports fails due to pre-commit checks Message-ID: <20210504094653.3m27ucqa3hotsusw@aching.in.mat.cc> References: <2c1ab5d2-d885-8f8d-94dd-99d0a5559a88@freebsd.org> <20210503070134.bydnbc2eah7st2on@aching.in.mat.cc> <6041a16c-a114-2896-7162-39b59110b782@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m4sqvfwinasof6ph" Content-Disposition: inline In-Reply-To: <6041a16c-a114-2896-7162-39b59110b782@freebsd.org> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2021 09:46:59 -0000 --m4sqvfwinasof6ph Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 03, 2021 at 09:54:36PM +0200, Stefan Esser wrote: > Am 03.05.21 um 09:01 schrieb Mathieu Arnold: > > On Sat, May 01, 2021 at 09:01:02PM +0200, Stefan Esser wrote: > >> The recovery of deleted ports in their previous form is rejected > >> by the pre-commit checks on the repository server: > >> > >> remote: > >> remote: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> remote: Do not commit ports without TIMESTAMP in their distinfo files. > >> remote: Rerun make makesum to add it. > >> remote: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> remote: > >> > >> I have tried to revert the deletion with unchanged files and then > >> updated the ports' Makefiles and distinfo files in a later commit. > >> > >> Pushing those commits all together fails with the message above, > >> and in order to not confuse GIT, deleted files should be committed > >> first, before applying any changes. > >=20 > > This is not needed at all, Git cannot get confused by something it has > > no knowledge of. Once a file is deleted, or moved, the history tracking > > stops. >=20 > I wanted to re-connect the resurrected files to the history of the port. > And that works best, if unmodified files are committed first, changes > applied and committed thereafter. >=20 > Did you try "git log multimedia/transcode"? >=20 > The history is there, back to 2002. Yeah, but this has nothing to do with you commiting unmodified files. Git does not track file renames or moves (or resurrection), it blindly looks at what you told it and goes as far as it can find things. --=20 Mathieu Arnold --m4sqvfwinasof6ph Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAmCRGAlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgKjSg/9FxrZgGvWK7U+YXALgKXKWY1dMxF8UdgODKyLfnrG/JgEotF6K3Zi7MJJ 1Dm4WtbZxyB1/SbdaNSGD2+qfmJrWhV4Q2hh8dMLNrufVjKQtyjktZLO3X+B08iz UcGF1UcvjLPeAiS9xGTdh8zrLiXtHgovEY9LGkqkdgRsIlSuwB8lfc8EE0ZQQ6od qFspDdebCWkkjuiTz3qYjdsf/8tvYYC579XivWexKZF58FzQDAF05fsF6GCGiuVC I3KRMOe/DDuIUwd9OxTW76R6HymTjhnzJrY/+YRLQLkBHmi6DTmk83AuhcZVvCSA 6X6Ymqir9zOQ7GuDsuCMmblpQREsagak/Lv8SMWDGGot9ST+F3zXBI+HEbpZ20DT 7Dck1VakauoBUKfFKB2ICxDWE3ieAigVBx7MEHzF/OJtEnPRgceajZByFEJFTk7p QxvP1wPzDJTmmErRJ5kBApqq1IzYc47Ged5sa1b43ZwOaqne70u1B2BVd5dsFfHM uq7GXsw3hZ7+MWxc3iNOnyc2FEcLzyxPFp7ymBS5/8h7qj+FLCmHV9IpXTiVrWEY r2U2kVWD0+0eza/TySjC+lmV/v5dPqyNnrMJn1zerCEwkNnpcxHcH22/YuWoJPVb 7nxlqvOAEuNzvZZyMNDAajotd/C1CBTWimdLBb8IVW9h5kbLiyk= =/+5R -----END PGP SIGNATURE----- --m4sqvfwinasof6ph--