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

Re: problems understanding branches

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-06-16 16:40:09 CEST

"Mats Nilsson" <mats.nilsson@xware.se> writes:

> > Please, assume the following scenario and point me to the right track:
> >
> > A repository: http://server/svn/repos contains the following tree:
> >
> > /main.c
> > /utils/utils.h
> > /utils/utils.c
>
> Since branches and tags are represented by directories, this directory
> layout will be difficult to use.
>
> Instead, I'm assuming that the repository has a slightly different layout:
> /trunk/main.c
> /trunk/utils/utils.h
> /trunk/utils/utils.c

It's easy to convert your current repository into this scheme

% svn mkdir http://server/svn/repos/trunk
% svn mv http://server/svn/repos/main.c http://server/svn/repos/trunk
% svn mv http://server/svn/repos/utils http://server/svn/repos/trunk

Now instead of checking-out the repository using

% svn co http://server/svn/repos -d wc

use

% svn co http://server/svn/repos/trunk -d wc

to check-out the trunk

or

% svn co http://server/svn/repos/branches/release-1.0 -d wc

to check-out a branch

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 16 16:40:48 2002

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

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