From owner-freebsd-ports@FreeBSD.ORG Tue Jun 18 12:22:43 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C268CF7 for ; Tue, 18 Jun 2013 12:22:43 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AC2371695 for ; Tue, 18 Jun 2013 12:22:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5ICMgpD060946 for ; Tue, 18 Jun 2013 12:22:42 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5ICMgvV060945 for ports@freebsd.org; Tue, 18 Jun 2013 12:22:42 GMT (envelope-from bdrewery) Received: (qmail 59385 invoked from network); 18 Jun 2013 07:22:41 -0500 Received: from unknown (HELO ?10.10.1.133?) (freebsd@shatow.net@10.10.1.133) by sweb.xzibition.com with ESMTPA; 18 Jun 2013 07:22:41 -0500 Message-ID: <51C05107.90603@FreeBSD.org> Date: Tue, 18 Jun 2013 07:22:31 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: "svn mv" and changing files at the same time: still prohibited References: <20130617141857.GA93727@regency.nsu.ru> In-Reply-To: <20130617141857.GA93727@regency.nsu.ru> X-Enigmail-Version: 1.5.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2WCPJBVIXOBHMFOCVPMNR" Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jun 2013 12:22:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2WCPJBVIXOBHMFOCVPMNR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/17/2013 9:18 AM, Alexey Dokuchaev wrote: > Hi there, >=20 > I've been trying to rename a port (games/rtcw -> games/linux-rtcw) and = had > to change something inside port's Makefile at the same time (drop PORTE= POCH > and PORTREVISION, and set PKGNAMEPREFIX accordingly), but commit was bl= ocked > by pre-commit hook with "Do not replace a file. This can lose history."= > message. I was under impression that this is only true for CVS exporte= r, > but since we no longer doing this, this hook should be removed. We've kept this to avoid losing easily-traceable history. The intent of this hook is to prevent a 'svn rm' and 'svn add' in the same commit where someone's intent was to 'undo' the removal. IIUC this would make 'svn log' on the file stop and require 'svn log file@old-rev' to continue. >=20 > I've renamed and edited pkg-message file of that port just fine (in the= > previous revision), and all history is there, so I'm wondering what's s= o > special about doing the same at the port-name level. >=20 > ./danfe The issue is likely that the source you copied from was not fully up-to-date. I've seen 2 cases of this recently. Example situation: You committed an update in rtcw to Makefile. The directory was at revision X, the commit brought Makefile to Y. You then 'svn mv' rtcw to linux-rtcw, which copies X (dir) and Y (files). Separate revisions. The change to the Y files then is seen as a "replacement" by the python SVN API. Solution: Save your target changes, undo the move (revert rtcw), 'svn update' in rtcw, and mv again. Then copy in your changes and commit. Don't forget to 'svn add' any files as well. This should fix it. The hook is not intended to stop the situation you ran into. I do plan to look at it more and test on a local repository to find a solution. --=20 Regards, Bryan Drewery ------enig2WCPJBVIXOBHMFOCVPMNR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRwFELAAoJEG54KsA8mwz5DDgP+wStBqVzfq66MiD0vrUnKof2 9hYy+6jF0kVUZ4D7kJ7oK0/DNT2j+1tEtwh9J8w+uNhCKTSlCb8+ugT9dyL4fMY0 wEwltA9uIvb2D0ISAFa2PLCx3MpVv+FAvb1lgUf2WeeZgq2vPX9QgOXgrQSU3bbJ 3dSxUox1Cp5YEwGrMtIx68Mnw3xUqd53aNZSGqYdj/x1Pjhx/OkG/QWD6oxsLYt0 gmVqTx6tfIrx2Wfx/IMANCu9X8uVcC1srOddoZZoJYinV7aZAU24711VONS9Cw3R 7c8bgGdeOuta5uoXj/DzbNwdzyLVrHLu9DoprATbxNz3MwAu6jnFWJxGnmH+plmm 89d5YW13FJMtCw+EK3au1CjjonhcCKXRpLbwFP51MKxnCTdAIcmhkQpak+dAo0wc BzOZLq/f4Qn2g/d+0oeFqe+OJtJoTVgXwQ5rujuvd+sA8NH/3u1PG3upjwi7Xe/S OjPuUb/PW8AVAdFEzu/2+IseueBzzUDTN9OYMajA6tg0ZWCnVZhYXMq22ajq6j9y QCLRu/f26Tr0+YeCb+py8u4nzOfYSl+n5xf80pjDqYbaC+zVakDDwOrLYvovswmG Au+6y318Dxv0me8+zpR/Q02h53TsekYHdex+IRc1Mu4MW6Q27z4BMtDFHzbF/DDW 6HDLR2l1MtlR8oNeAcjs =l9G6 -----END PGP SIGNATURE----- ------enig2WCPJBVIXOBHMFOCVPMNR--