You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jeff Bowden <jl...@houseofdistraction.com> on 2003/08/07 21:33:58 UTC

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

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><a href="#patch">How do I submit a patch for Subversion?</a></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

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

Posted by kf...@collab.net.
Jeff Bowden <jl...@houseofdistraction.com> writes:
> >Jeff, I think your mailer wrapped this patch in such a way that the
> >'patch' program can't apply it.
>
> 
> Sure.

Thanks, applied!  I tweaked it to use 80-column lines, and to close
<p> tags with </p>, as that's how the rest of the FAQ is done.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

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

Posted by Jeff Bowden <jl...@houseofdistraction.com>.
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.



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

Posted by kf...@collab.net.
Jeff, I think your mailer wrapped this patch in such a way that the
'patch' program can't apply it.

Can you repost, with the patch as an attachment instead of inline?

Thanks,
-Karl

Jeff Bowden <jl...@houseofdistraction.com> writes:
> 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><a href="#patch">How do I submit a patch for Subversion?</a></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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org