From users-return-5190-daniel=haxx.se@subversion.apache.org Wed Oct 6 14:28:26 2010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on giant.haxx.se X-Spam-Level: X-Spam-Status: No, score=-1.5 required=3.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with SMTP id o96CSP2r028376 for ; Wed, 6 Oct 2010 14:28:25 +0200 Received: (qmail 76897 invoked by uid 500); 6 Oct 2010 12:28:15 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 76890 invoked by uid 99); 6 Oct 2010 12:28:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 12:28:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS Received-SPF: pass (nike.apache.org: local policy) Received: from [80.67.18.13] (HELO smtprelay01.ispgateway.de) (80.67.18.13) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 12:28:06 +0000 Received: from [75.34.103.74] (helo=[192.168.7.75]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1P3T5z-0004Fl-CR; Wed, 06 Oct 2010 14:27:43 +0200 Subject: Re: Importing Existing Repository into a New Repository Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Ryan Schmidt In-Reply-To: Date: Wed, 6 Oct 2010 07:27:40 -0500 Cc: Tech Geek , =?iso-8859-1?Q?Thorsten_Sch=F6ning?= , Subversion Users Content-Transfer-Encoding: quoted-printable Message-Id: <2647FC69-41D5-4CED-B78F-1F360F24D9B4@ryandesign.com> References: <1922440419.20101005221829@am-soft.de> <1967DFEF-D5B7-46F1-8114-5D812A29BEF1@ryandesign.com> To: Nico Kadel-Garcia X-Mailer: Apple Mail (2.1081) X-Df-Sender: 368818 X-Virus-Checked: Checked by ClamAV on apache.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Wed, 06 Oct 2010 14:28:26 +0200 (CEST) X-Friend: Nope On Oct 6, 2010, at 07:03, Nico Kadel-Garcia wrote: > 2010/10/5 Ryan Schmidt: >>=20 >> If you do not want to preserve the history, then you want to "svn = export" from the old repository and "svn import" it into the new = repository. >=20 > You'll also want to seriously review the Subversion properties of the > material before the export, in order to replicate them in the imported > or "added" material. svn:externals, svn:keywords, svn:eol, etc., etc., > etc. are not contained in an export: they're meta data in the > Subversion repository, not the raw or even processed content of the > exported files. This includes svn:eol, svn:keywords, and in particular > svn:external. svn:keywords in particular, will create fascinating and > confusing content in the keywords of the files at the time of your > original import, so this is something to do cautiously. >=20 > This is one of those cases where a bit of extra attention, instead of > "just export it and import it" can save you some surprises down the > road. Ah yes, this is true. If properties are of interest, then an alternative = to svn exporting, manually fixing the properties, and svn importing, is = to svnadmin dump just the HEAD revision and then svnadmin load it: svnadmin dump -rHEAD /path/to/oldrepo > dump svnadmin load /path/to/newrepo < dump This will dump only a single revision representing the state of the old = repo at HEAD, and will preserve properties. In between dump and load you = can use svndumpfilter if you wish to exclude parts of the dump (or = include only certain parts), and you can use svnadmin load's = --parent-dir argument if you want to change where the contents are = loaded (or just use "svn mv" after loading).