[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] new FAQ entry describing how to do an in-place import

From: Jeff Bowden <jlb_at_houseofdistraction.com>
Date: 2003-08-08 07:57:27 CEST

kfogel@collab.net wrote:

>Jeff, I think your mailer wrapped this patch in such a way that the
>'patch' program can't apply it.
>

Sure.

Index: project_faq.html
===================================================================
--- project_faq.html (revision 6669)
+++ project_faq.html (working copy)
@@ -51,6 +51,7 @@
 <li>Why do read-only operations still need repository write access?</li>
 <li>How do I completely remove a file from the repository's history?</li>
 <li>How do I submit a patch for Subversion?</li>
+<li>How can I do an in-place 'import' (i.e. add a tree to subversion without moving or deleting the original working copy)?</li>
 <p>
 <strong>Troubleshooting:</strong>
 </p>
@@ -743,6 +744,24 @@
 
 <![CDATA[=========================================================]]>
 
+<h3><a name="inplaceimport">How can I do an in-place 'import' (i.e. add a tree to subversion without moving or deleting the original working copy)?</a></h3>
+<p>Suppose, for example, that you wanted to put some of /etc under
+version control inside a brand-new repository you created using:
+<pre>
+ # svnadmin create /root/svn
+</pre>
+To do this you would:
+<pre>
+ # cd /
+ # svn co file:///root/svn etc
+ # cd etc
+ # svn add apache samba alsa X11
+ # svn commit -m "configury"
+</pre>
+This takes advantage of the a hidden feature of add which allows it to create working copies for directories which do not yet exist in the repository.
+
+<![CDATA[=========================================================]]>
+
 <p>
 <hr>
 <p>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 8 07:58:17 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.