Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2017 17:49:56 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: How do I recover a lost ports directory with svn?
Message-ID:  <525569c9-a6d0-01cc-8672-e177df9acc52@FreeBSD.org>
In-Reply-To: <dc472414-4451-45d3-a9ef-cfa221e348a7@unixarea.de>
References:  <dc472414-4451-45d3-a9ef-cfa221e348a7@unixarea.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--N3WRFAPbP4njhuKP83IXrQF6yRH7A163z
Content-Type: multipart/mixed; boundary="KgM6FOuY5VMpYe4mSAOdMMOmpsuV9KJVd";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
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: <dc472414-4451-45d3-a9ef-cfa221e348a7@unixarea.de>
In-Reply-To: <dc472414-4451-45d3-a9ef-cfa221e348a7@unixarea.de>

--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 <bob@immure.com>=

> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?525569c9-a6d0-01cc-8672-e177df9acc52>