From owner-freebsd-questions@FreeBSD.ORG Thu Sep 27 16:24:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7F13106564A for ; Thu, 27 Sep 2012 16:24:11 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id 16EBB8FC0C for ; Thu, 27 Sep 2012 16:24:10 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.5/8.14.5) with ESMTP id q8RGO4S4090532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Sep 2012 18:24:04 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.5/8.14.5/Submit) with ESMTP id q8RGO463090529; Thu, 27 Sep 2012 18:24:04 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Thu, 27 Sep 2012 18:24:04 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Ed Flecko In-Reply-To: Message-ID: References: <20120927001135.8e893552.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-408008236-1348763044=:60743" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Cc: freebsd-questions@freebsd.org Subject: Re: How to use subversion to keep source, system and doc files up to date? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2012 16:24:11 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-408008236-1348763044=:60743 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Thu, 27 Sep 2012 08:18-0700, Ed Flecko wrote: > Thank you all! > > I'm a little confused by Trond's reply, > > "Make sure your /usr/src and /usr/ports directories does not contain > files and directories served by Subversion, they will hinder > extraction/updating when checking out a Subversion working copy on top > of the existing hierarchy. > > Simply delete all non-local files, rename /usr/src/sys to, say > /usr/src/sys0, do the Subversion check out, and move your local files > back into place." > > 1.) What is meant by deleting all non-local files? What files is he > referring to? First, I may have misread your question. Others have provided far better answers to your exact question. I use my local CVS repo to track changes I make to files I create or edit myself, like /etc/rc.conf, /usr/src/sys/amd64/conf/SOMECUSTOMKERNEL, etc. When I switched from CVSup to Subversion, I let the directory /usr/src/sys exist, but only with my own files stored within this hierarchy, e.g. my custom kernel configuration file, /usr/src/sys/amd64/conf/ENTERPRISE. The very existence of the directory /usr/src/sys prohibited Subversion from populating the directory /usr/src/sys with the desired contents. Thus, I had to delete all files and directories made during the intial svn co operation, including the special .svn directory, rename sys to sys0 as described in my previous email, redo the svn co operation, and finally move my own (custom) files back into place. Afterwards, it's simply a matter of running svn update to update source files from the chosen svn repo, and in my case, check in any local changes made to the local CVS repo I use for my configuration management. Maybe me adding CVS to the mix caused or still cause confusion. > 2.) If I rename /usr/src/sys to, say /usr/src/sys0, do the Subversion > check out, and move your local files back into place, won't that be > replacing new files with the older files? I was indirectly referring to local edited files, such as custom kernel configuration files. My bad for not making this clearer. > 3.) These steps are just meant for the initial check out, aren't > they??? Once I've checked out (i.e., "downloaded", right?) the current > files, I'll only need to: svn update /usr/ports..., etc. from that > point forward and not "delete all non-local files, rename /usr/src/sys > to, say /usr/src/sys0, do the Subversion check out, and move your > local files back into place"...Is that right? True. I had to do the rename and move files dance only once. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ --2055831798-408008236-1348763044=:60743--