[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: Brass Tilde <brasstilde_at_insightbb.com>
Date: 2005-01-24 17:08:04 CET

> Then, as a normal user, I checked in a project:

> ... mkdir -p /tmp/orderform/branches
> ... mkdir -p /tmp/orderform/tags
> ... mkdir -p /tmp/orderform/trunk
> ... cd /var/www/main/cgi-bin/orders
> ... cp -R . /tmp/orderform/trunk/
> ... 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

This one bit me a couple of times too, until I figured out what I was doing
wrong. Note the files being added include the "tmp" directory, indicating
that you checked in the "tmp" directory as well as your source code. That
means that the code actually resides in <path>/svn-repos/tmp/orderform/trunk
in the repository, instead of where you intended it to be.

When you imported it, you could have changed to the tmp directory, then
imported from there, using "." as the path:

'svn import . <path>/svn-repos'

> ...svn checkout file:///var/local/svn-repos/orderform/trunk .
> svn: URL 'file:///var/local/svn-repos/orderform/trunk' doesn't exist

Alternatively, you can do 'svn co <path>/svn-repos/tmp/orderform/trunk .' to
get the files from where they actually reside.

Brad

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 24 17:10:31 2005

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