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

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

From: Jeff Bowden <jlb_at_houseofdistraction.com>
Date: 2003-08-07 23:33:58 CEST

Index: project_faq.html
===================================================================
--- project_faq.html (revision 6669)
+++ project_faq.html (working copy)
@@ -51,6 +51,7 @@
 <li><a href="#readonly">Why do read-only operations still need
repository write access?</a></li>
 <li><a href="#removal">How do I completely remove a file from the
repository's history?</a></li>
 <li>How do I submit a patch for Subversion?</li>
+<li><a href="#inplaceimport">How can I do an in-place import (i.e. add
a tree to subversion without moving or deleting the original
files)?</a></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 files)?</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 Thu Aug 7 23:35:19 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.