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

Re: making repositories

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-10-14 20:47:51 CEST

On Monday 14 October 2002 09:55, kbrannen@gte.net wrote:
> Q1. That import command seems to want the equivalent of a $CVSROOT sort of
> thing, however, I have no idea where the "svnadmin create" put the
> repository. So what do I fill in?

Looks like you found the answer: yes, it creates it in the current directory.
As for $CVSROOT functionality, there are various proposals floating around,
most having to do with prefixing URLs with something to indicate that they
should be URLs and not local relative paths, and then resolve them relative
to the repository. But for checkouts and imports, you would probably still
have to specify the full path.

One solution (and the only solution at the moment) is to just set your own
environment variable, for example $REPOS, and then just type something like:

$ export REPOS=/foo/bar/repos
$ svnadmin create $REPOS
$ export REPOS=file://$REPOS
$ svn import $REPOS foo bar
$ svn co $REPOS/xyz work

You get the idea.

> That created a repository directory and files in the current directory,
> though you could have given it a fullpath name, e.g. /data/svn/myrepos.
> Now, let's assume you have a directory someproject which contains ...

That makes sense. I agree that this could be confusing. You should read the
HACKING file (found in the Subversion source) and submit that change as a
patch to the handbook.

> Q2. While I suppose its dependent on how one works, generally speaking,
> isn't the "someproject" and "myproj" args to import going to be the same
> name?

Yup, probably. I think it was just demonstrating that they don't have to be
the same.

I think a lot of the examples in the handbook are just there to demonstrate
the basic features, but to also try to make sure you don't get misconceptions
about the arguments, such as that two have to be the same. You can always do
"svn help" and "svn help [command]" to find out exactly what each argument is
supposed to mean.

-- 
Peter Davis
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 14 20:48:35 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.