From owner-freebsd-questions@freebsd.org Tue Dec 26 17:50:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62BB1EA52D8 for ; Tue, 26 Dec 2017 17:50:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EA20A801B0 for ; Tue, 26 Dec 2017 17:50:06 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:29b4:9172:b2f8:fc16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id B4585103D1 for ; Tue, 26 Dec 2017 17:50:03 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Subject: Re: How do I recover a lost ports directory with svn? To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: <525569c9-a6d0-01cc-8672-e177df9acc52@FreeBSD.org> Date: Tue, 26 Dec 2017 17:49:56 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="N3WRFAPbP4njhuKP83IXrQF6yRH7A163z" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 17:50:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --N3WRFAPbP4njhuKP83IXrQF6yRH7A163z Content-Type: multipart/mixed; boundary="KgM6FOuY5VMpYe4mSAOdMMOmpsuV9KJVd"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <525569c9-a6d0-01cc-8672-e177df9acc52@FreeBSD.org> Subject: Re: How do I recover a lost ports directory with svn? References: In-Reply-To: --KgM6FOuY5VMpYe4mSAOdMMOmpsuV9KJVd Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 26/12/2017 16:58, Matthias Apitz wrote: > On Tuesday, 26 December 2017 17:27:54 CET, Bob Willcox = > wrote: >> I accidently removed one of my ports subdirectories, devel/swig13, and= >> need to check it back out from svn. Unfortunately the documentation fo= r >> svn seems skimpy (at best) and I'm not able to come up with a command >> and arguments that will allow me to check out this port's directory. >> >> Is there some way to do this (w/o removing everything and checking it >> all out again)? Any help much appreciated. >> >> Thanks, >> Bob >> >=20 > cd /usr/ports > svn up >=20 > or >=20 > svn up -rnnnnnn >=20 Careful now. bapt removed the devel/swig13 port in r456846 about 5 days ago now. If the OP has a checked out ports tree from before r456846 ('svn info' will show what revision you have) where he has accidentally deleted devel/swig13, then he can do: # svn revert -R devel/swig13 If he's got a newer version than r456846 but wants to restore the last version of devel/swig13 before it was removed, then he can either check out a specific version of the entire tree: # svn up -r456800 or just the devel/swig13 subdirectory, leaving the rest of the tree alone= : # svn up -r456800 devel/swig13 (you need to cd to the top directory, typically /usr/ports, for any of these commands.) Note that 'svn up' will revert both of the last two commands. None of these commands should need to pull down vast quantities of data from the repository, as there's a pristine copy of the data in /usr/ports/.svn including the revision history, so it's pretty easy to get an older version of the tree checked out. Cheers, Matthew =09 --KgM6FOuY5VMpYe4mSAOdMMOmpsuV9KJVd-- --N3WRFAPbP4njhuKP83IXrQF6yRH7A163z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKoBAEBCgCSFiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlpCi8RfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcUHG1hdHRoZXdA ZnJlZWJzZC5vcmcACgkQAFE/EOCp5Odr1g//bRvvJKJPKPVCSFEFjUaivHrX51eA Al/c+iAcs+I0di2o7xe3LqpZk7vLBaOSr0Mm47IQr2tHygY/lIqtNjlac1Oq0M49 Xz9+npVWd/J0z8wtYHzq3h9z30wcqoUvooQPZckgrkqE43lQgrwVXOgPl/DXxBbG yRZW8r6k9AdnajttxuPAgdMAfg/dpidt0lneDe0qPQiaX6JgXplUAwMupGFo2vGA Hos72u95HfplWJ5xJhm4G1bsWc7KKnp9fTWM9I/kGrr5DNkLm/ltl91DbDBGoEnM x5JEfNKTbzJujCu/trWUkgk9C3JPJZ2pZCikJH/UHIkeQgNEEBtDvJusBZPFGETN 0bwog+9+Y7zLLVhE4LzefrJ6MSVrU3SpUxnCyM9itFrh/GIXUBJh+iWHmxaXEB4S eF4rbSTKQVa2r5aG4oAWYQH84O/5GAUyiHkpIqlwMfSd4mM0WgspXPnaKD2ZX0sr 3aA+iatSVpz7tubrV21d8WlN6PkUzIKUEuVu2lrCABi2ecLgoR9C2Nccsev7r3yI eRpDGzqiyjPz2EkT8rXOIMK7OZqKOUPL+Evfkkft9vStRhfhJgglPlaL+JZWKsFV 5bWElCEm6Rm5UqsTGRkuYja2MEd89LETCAw3SncAfcPn9wwpDMeytHzNcLwirDZi yfdOsCQbvFNjI5E= =umEg -----END PGP SIGNATURE----- --N3WRFAPbP4njhuKP83IXrQF6yRH7A163z--