[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: Blair Zajac <blair_at_orcaware.com>
Date: 2007-10-18 02:24:04 CEST

Karl Fogel wrote:
> 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

The multiple move is only a feature in 1.5, are you already working with a dev
build of 1.5 :)

Until 1.5 is out, then you can use svnmucc to do the three renames in a single
commit.

Blair

---------------------------------------------------------------------
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:25:55 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.