From owner-freebsd-questions@FreeBSD.ORG Sat Feb 23 20:45:16 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C64E4AE4 for ; Sat, 23 Feb 2013 20:45:16 +0000 (UTC) (envelope-from chris@example.com) Received: from yavin.vindaloo.com (yavin.vindaloo.com [72.52.97.79]) by mx1.freebsd.org (Postfix) with ESMTP id A6C15236 for ; Sat, 23 Feb 2013 20:45:16 +0000 (UTC) Received: from geonosis.vindaloo.com (ool-44c34eb3.dyn.optonline.net [68.195.78.179]) by yavin.vindaloo.com (Postfix) with ESMTP id 614AC51845 for ; Sat, 23 Feb 2013 15:45:09 -0500 (EST) Received: from naboo.example.com (unknown [12.130.123.222]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by geonosis.vindaloo.com (Postfix) with ESMTPSA id C1984BC60; Sat, 23 Feb 2013 15:45:07 -0500 (EST) Received: by naboo.example.com (Postfix, from userid 1001) id ADE687301F; Sat, 23 Feb 2013 15:45:04 -0500 (EST) Date: Sat, 23 Feb 2013 15:45:04 -0500 From: Christopher Sean Hilton To: questions@freebsd.org Subject: Re: Using svn to checkout a deprecated port. Message-ID: <20130223204504.GA1844@naboo.example.com> References: <20130218192335.GA7566@naboo.example.com> <5122D19F.2040804@ShaneWare.Biz> <20130219042309.GA7901@naboo.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130219042309.GA7901@naboo.example.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2013 20:45:16 -0000 On Mon, Feb 18, 2013 at 11:23:09PM -0500, Christopher Sean Hilton wrote: > On Tue, Feb 19, 2013 at 11:43:03AM +1030, Shane Ambler wrote: > > On 19/02/2013 05:53, Christopher Sean Hilton wrote: > > > Hi, > > > > > > I need to use svn to checkout the old "security/cfs" port so I can > > > do a one-time transfer of some data off of a USB drive. At the end of > > > the day, I just need the one port so if the cvs repository is > > > available I could also get it that way. In either case, I'm trying to > > > do the equivalent of: > > > > > > $ cvs co -r '2011/10/01' $FreeBSDportsRepo security/cvs > > > > > > in English, I want to checkout security/cvs from ports as it existed > > > on October 1st, 2011 (the port was deprecated on November 1st 2011. > > > > > > > It appears that checking out a deleted path doesn't work even if you > > specify a rev that it exists in. But checking out the parent works. > > I'd check it out to another dir then copy the specific files over. > > > > svn co -r 282000 svn://svn.freebsd.org/ports/head/security/ > > > > You can change the svn.freebsd.org to svn0.us-east.FreeBSD.org or > > svn0.us-west.FreeBSD.org > > > > For reference I went to http://svnweb.freebsd.org/ports and clicked the > > revision number at the top (above the sticky revision box) then tried# > > jumping to a few different rev numbers till I got close to a commit date > > just before 2011/10/01. Once you have the rev you want you can go back > > up to ports (link at top of page) and enter a sticky revision. Then you > > can go to security/cfs and view the files. > > > > Thanks for the quick answers everyone, the trick seems to be three steps: > > # prime the tree with a guess as to the revision that you need. > > svn co -r --depth immediates svn:///security > > # refine the guess using the svn logs. > > cd security/cfs && svn log > > # checkout the revision that you wanted. ( updating didn't work...) > > cd ../.. && rm -rf security && svn co -r svn > In the case of cfs, this also worked: $ svn co -r 282000 --depth immediates svn:///security $ (cd security/cfs && svn log) | less ## the log revealed that the last revision was 281170 $ cd security $ svn up -r 281170 cfs $ cd cfs && su $ make; make install; make package clean Thanks again for the help. -- Chris ---------------------------------------------------------------------------- "There will be an answer, Let it be." e: chris -at- vindaloo -dot- com