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

Just not getting it: initial checkin and checkout

From: KEVIN ZEMBOWER <KZEMBOWE_at_jhuccp.org>
Date: 2005-01-24 16:52:23 CET

Something's not making sense to me regarding the initial checkin and checkout. I'm using the online Subversion 1.0 reference manual.

I had a hard time understanding the philosophy behind creating a repository to contain multiple projects. Then, I realized that it's just simpler and has less overhead. So, I tried to create that type of repository:
www:/var/local# svnadmin create /var/local/svn-repos/
www:/var/local# cd svn-repos/
www:/var/local/svn-repos# chmod -R g+w .

All this was done as 'root.' This seemed to operate correctly. The last command was to allow the group 'wwwadmin', who owns the repository, to write to it.

Then, as a normal user, I checked in a project:
www:/var/local/svn-repos# su - kevinz
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/."
Adding /tmp/orderform/trunk
Adding /tmp/orderform/trunk/orderform.cgi
Adding /tmp/orderform/trunk/templ
Adding /tmp/orderform/trunk/templ/pending.html
Adding /tmp/orderform/trunk/templ/complete.html
Adding /tmp/orderform/trunk/templ/complete.html,v
Adding /tmp/orderform/trunk/libnof.pm.old
Adding /tmp/orderform/trunk/orderform2.cgi
Adding /tmp/orderform/trunk/orderform.cgi,v
Adding /tmp/orderform/trunk/orderform.html
Adding /tmp/orderform/trunk/libnof.pm
Adding /tmp/orderform/trunk/orderform.html,v
Adding /tmp/orderform/trunk/data.bak
Adding /tmp/orderform/trunk/libnof.pm,v
Adding /tmp/orderform/trunk/libnof2.pm
Adding /tmp/orderform/trunk/data.bak,v
Adding /tmp/orderform/trunk/new_order.php
Adding /tmp/orderform/branches
Adding /tmp/orderform/tags

Committed revision 1.

This seemed to work normally, too.

I then tried to create a temporary directory to make sure I could check it out again:
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

I don't understand why this command didn't work.

I then tried another variation from the manual:
kevinz_at_www:/var/www/main/cgi-bin/tmporders$ svn checkout file:///var/local/svn-repos/trunk orderform
A orderform/orderform.cgi
A orderform/libnof.pm.old
A orderform/templ
A orderform/templ/pending.html
A orderform/templ/complete.html
A orderform/templ/complete.html,v
A orderform/orderform.cgi,v
A orderform/orderform2.cgi
A orderform/orderform.html
A orderform/libnof.pm
A orderform/orderform.html,v
A orderform/data.bak
A orderform/libnof2.pm
A orderform/libnof.pm,v
A orderform/data.bak,v
A orderform/new_order.php
Checked out revision 1.
kevinz@www:/var/www/main/cgi-bin/tmporders$

This seemed to work correctly, but didn't do exactly what I wanted. I wanted to have the trunk files of the orderform project in the folder /var/www/main/cgi-bin/tmporders.

I tried some other things:
kevinz@www:/var/www/main/cgi-bin/tmporders$ rm -Rf orderform/
kevinz_at_www:/var/www/main/cgi-bin/tmporders$ svn checkout file:///var/local/svn-repos/trunk orderform .
A trunk/orderform.cgi
A trunk/libnof.pm.old
A trunk/templ
A trunk/templ/pending.html
A trunk/templ/complete.html
A trunk/templ/complete.html,v
A trunk/orderform.cgi,v
A trunk/orderform2.cgi
A trunk/orderform.html
A trunk/libnof.pm
A trunk/orderform.html,v
A trunk/data.bak
A trunk/libnof2.pm
A trunk/libnof.pm,v
A trunk/data.bak,v
A trunk/new_order.php
Checked out revision 1.
svn: 'orderform' does not appear to be a URL

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
A tmporderform/trunk/orderform.cgi
A tmporderform/trunk/libnof.pm.old
A tmporderform/trunk/templ
A tmporderform/trunk/templ/pending.html
A tmporderform/trunk/templ/complete.html
A tmporderform/trunk/templ/complete.html,v
A tmporderform/trunk/orderform.cgi,v
A tmporderform/trunk/orderform2.cgi
A tmporderform/trunk/orderform.html
A tmporderform/trunk/libnof.pm
A tmporderform/trunk/orderform.html,v
A tmporderform/trunk/data.bak
A tmporderform/trunk/libnof2.pm
A tmporderform/trunk/libnof.pm,v
A tmporderform/trunk/data.bak,v
A tmporderform/trunk/new_order.php
Checked out revision 1.
svn: 'orderform' does not appear to be a URL

Again, not exactly what I wanted. Again:
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
svn: URL 'file:///var/local/svn-repos/trunk/orderform' doesn't exist
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

I don't understand why one or the other of these last two commands doesn't work.

Thank you for any light you can shed to help me get started with Subversion..

-Kevin Zembower

-----
E. Kevin Zembower
Internet Systems Group manager
Johns Hopkins University
Bloomberg School of Public Health
Center for Communications Programs
111 Market Place, Suite 310
Baltimore, MD 21202
410-659-6139

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 24 16:55:07 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.