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