From owner-freebsd-questions@freebsd.org Tue Dec 26 20:20:40 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 EAEE3EACF2D for ; Tue, 26 Dec 2017 20:20:40 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (108-84-10-9.lightspeed.austtx.sbcglobal.net [108.84.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "darth.immure.com", Issuer "darth.immure.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97E8265A4F; Tue, 26 Dec 2017 20:20:40 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.15.2/8.15.2) with ESMTPS id vBQKKdT7040528 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Dec 2017 14:20:39 -0600 (CST) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.15.2/8.15.2/Submit) id vBQKKdf4040527; Tue, 26 Dec 2017 14:20:39 -0600 (CST) (envelope-from bob) Date: Tue, 26 Dec 2017 14:20:39 -0600 From: Bob Willcox To: Matthew Seaman Cc: freebsd-questions@freebsd.org Subject: Re: How do I recover a lost ports directory with svn? Message-ID: <20171226202039.GI99670@rancor.immure.com> Reply-To: Bob Willcox References: <525569c9-a6d0-01cc-8672-e177df9acc52@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <525569c9-a6d0-01cc-8672-e177df9acc52@FreeBSD.org> User-Agent: Mutt/1.8.3 (2017-05-23) 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 20:20:41 -0000 On Tue, Dec 26, 2017 at 05:49:56PM +0000, Matthew Seaman wrote: > 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 for > >> 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 > >> > > > > cd /usr/ports > > svn up > > > > or > > > > svn up -rnnnnnn > > > > 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 > Ok, so maybe that was why when I ran 'svn up' I didn't get it back as I thought I would (bapt's removal of it being thee reason). That makes sense then. I really didn't need the swig13 port. The reason I wound up removing the directory was due to complaints from synth about it, and in the process of checking into that I deleted it. :( Thanks, Bob -- Bob Willcox | If everything is coming your way, you're in the bob@immure.com | wrong lane. Austin, TX |