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

Re: Just not getting it: initial checkin and checkout

From: Jacob Atzen <jacob_at_aub.dk>
Date: 2005-01-24 18:01:51 CET

On Mon, Jan 24, 2005 at 10:52:23AM -0500, KEVIN ZEMBOWER wrote:
> www:/var/local# svnadmin create /var/local/svn-repos/

Okay, your repository is at /var/local/svn-repos.

> kevinz@www:~$ mkdir -p /tmp/orderform/branches
> kevinz@www:~$ mkdir -p /tmp/orderform/tags
> kevinz@www:~$ mkdir -p /tmp/orderform/trunk
> kevinz@www:~$ cd /var/www/main/cgi-bin/orders
> kevinz@www:/var/www/main/cgi-bin/orders$ cp -R . /tmp/orderform/trunk/
> kevinz_at_www:/var/www/main/cgi-bin/orders$ svn import /tmp/orderform file:///var/local/svn-repos -m"Initial check-in of working orderform system, from /var/www/main/cgi-bin/order/."

You import the content of /tmp/orderform, that is you have added trunk,
branch and tags dir to /var/local/svn-repos.

> kevinz@www:/var/www/main/cgi-bin/orders$ cd /var/www/main/cgi-bin/
> kevinz@www:/var/www/main/cgi-bin$ cd tmporders/
> kevinz_at_www:/var/www/main/cgi-bin/tmporders$ svn checkout file:///var/local/svn-repos/orderform/trunk .
> svn: URL 'file:///var/local/svn-repos/orderform/trunk' doesn't exist

You are trying to checkout /var/local/svn-repos/orderform which does not
exist. Your repository contains a trunk, branch and tag dir as per your
import above.

> kevinz_at_www:/var/www/main/cgi-bin/tmporders$ svn checkout file:///var/local/svn-repos/trunk orderform

Now you are trying to checkout another path than before, right?
/var/local/svn-repos/trunk and you are telling subversion to put the
result in a directory called orderform.

> kevinz_at_www:/var/www/main/cgi-bin/tmporders$ svn checkout file:///var/local/svn-repos/trunk orderform .

> This again seemed to work correctly, but didn't give me exactly what I
> wanted. I understand why the svn error occurred, however, from the
> examples in the manual using two URLs for the repository.
> Another attempt:
> kevinz@www:/var/www/main/cgi-bin/tmporders$ cd ..
> kevinz@www:/var/www/main/cgi-bin$ rm -Rf tmporders/
> kevinz_at_www:/var/www/main/cgi-bin$ svn checkout file:///var/local/svn-repos/trunk orderform tmporderform

It seems you didn't quite get the error after all. You are trying to
checkout /var/local/svn-repos/trunk _and_ orderform (which isn't even a
correct URL) into a tmporderform directory.

> kevinz_at_www:/var/www/main/cgi-bin$ svn checkout file:///var/local/svn-repos/trunk/orderform tmporderform
> svn: URL 'file:///var/local/svn-repos/trunk/orderform' doesn't exist

There is no trunk/orderform in your repository. trunk only contains
files and a single directory.

> kevinz_at_www:/var/www/main/cgi-bin$ svn checkout file:///var/local/svn-repos/orderform/trunk tmporderform
> svn: URL 'file:///var/local/svn-repos/orderform/trunk' doesn't exist

And now you're back where you started, orderform does not exist.

Now the right way to do this is:

$ cd $PATH
$ svn co file:///var/local/svn-repos/trunk tmporderform

This will create a new directory 'tmporderform' in the directory pointed
to by $PATH. The new directory will contain whatever is in your trunk.

For future reference, you might want to just checkout the top-level of
your repository (/var/local/svn-repos) to see exactly what is in it.
That's how I like to get the big picture anyways.

- Jacob Atzen
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 24 18:04:23 2005

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.