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

Re: create trunk for an existing rep

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-10-18 11:18:52 CEST

Ryan Schmidt <subversion-2007b@ryandesign.com> writes:
> Christian's question was, given that he already has his project in a
> repository without the trunk and branches directories, how does he
> now create them? Your import suggestion is useful for his next
> project, but does not help him now. The way to fix his his problem
> now is to do what Micah said: check out a temporary working copy
> somewhere, make the trunk directory, move everything into it, make
> the branches and tags directories, and commit. Micah didn't say, but
> the implication is that now this temporary working copy will be
> deleted since it is no longer needed.

I don't think he needs to do any checkouts. I haven't tested these
commands, but this general idea should work:

   $ svn mkdir -m "create /trunk" http://.../trunk
   $ svn mv -m "move stuff into trunk" http://.../thing1 \
                                       http://.../thing2 \
                                       http://.../thing3 \
                                       ... \
                                       http://.../trunk
   $ svn switch http://.../trunk /path/to/existingwc

?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 18 02:19:41 2007

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

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