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

RE: Re: create trunk for an existing rep

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-10-17 15:23:57 CEST

> -----Original Message-----
> From: Troy Curtis Jr [mailto:troycurtisjr@gmail.com]
>
> On 10/17/07, Luca Ferrari <fluca1978@infinito.it> wrote:
> > On Wednesday 17 October 2007 Micah Elliott's cat, walking on the
> > keyboard,
> > wrote:
> > > cd ~/sandbox
> > > svn checkout file://path/to/repo tmpwc
> > > cd tmpwc
> > > svn mkdir trunk
> > > for f in *; do svn mv $f trunk; done
> > > svn mkdir branches tags
> > > svn commit -m "Finally got organized!"
> >
> >
> > Doing the above, is then necessary a checkout or just an
> update from
> > other users?

You don't have to checkout (as you already have it), but others do need
to checkout.

> >
> > Luca
> >
> I think that you should be able to "switch" your working copy:
>
> svn switch <old url> <new url>
>
Based on the above technique, there's no reason to "switch" because
you're whole project (branches and all) is in your local workspace.

I guess because I use Tortoise so frequently, I actually forgot how it
is done from the command line. Another approach, that I think has some
advantages is to create the repository structure in a folder (project,
trunk, branch, tags), put your mainline (initial) project code in the
trunk folder, and do an svn import. Next, somewhere else on your HD,
create "Projects/MyProject" and checkout the trunk there.

I like this method because I prefer to grab "trunk" as my working copy,
and "svn switch" as necessary into the workspace rather than mirror the
repository locally, which is what happens with Micah's suggestion.

--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 17 15:24:32 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.