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

Newbie: Need help understanding checkout

From: KEVIN ZEMBOWER <KZEMBOWE_at_jhuccp.org>
Date: 2005-01-06 15:57:16 CET

I just installed Subversion (v1.0) and am using it on my first project under revision control. I need some help understanding why it's working the way it is. Here are some clips of my commands, with responses.

I created a small project and committed it. I then added an 'includes/' and some files in includes/ and thought I had committed it:
kevinz@www:~/public_html/cigrants$ svn add includes/
svn: warning: 'includes' is already under version control
kevinz@www:~/public_html/cigrants$ svn add includes/config.php
svn: warning: 'includes/config.php' is already under version control
kevinz@www:~/public_html/cigrants$ svn commit -m"Making sure includes/ is included." includes/
Adding includes/grantfooter.php
Adding includes/grantheader.php
Deleting includes/orderfooter.php
Deleting includes/orderheader.php

Committed revision 4.
kevinz@www:~/public_html/cigrants$ cd ../cigrants2 ## I had previously checked out a version of the project in cigrants2
kevinz@www:~/public_html/cigrants2$ svn update
At revision 3.

At this point, I don't understand why the version in cigrants2 wasn't updated with the includes/ which was checked into revision 4.

kevinz@www:~/public_html/cigrants2$ cd ..
kevinz@www:~/public_html$ rm -Rf cigrants2/ ## Starting over with checkout
kevinz_at_www:~/public_html$ svn checkout file:///home/kevinz/svn-repos/cigrants/trunk/ cigrants2
A cigrants2/help
A cigrants2/help/addregion.php
A cigrants2/help/addcountry.php
A cigrants2/help/addactivity.php
A cigrants2/addgrant.php
A cigrants2/utilities
A cigrants2/utilities/regions.txt
A cigrants2/utilities/countries.txt
Checked out revision 3.
kevinz@www:~/public_html$

And here, I don't understand why revision 3 was checked out, and not revision 4. I also don't understand why the includes/ and files weren't included.

Here, I'm going back to the original directory, to see if I have to name the files individually to check them in:

kevinz@www:~/public_html$ cd ~-
kevinz@www:~/public_html/cigrants2$ cd ../cigrants
kevinz@www:~/public_html/cigrants$ svn commit -m"Making sure includes/config.php is included." includes/config.php
kevinz@www:~/public_html/cigrants$ svn commit -m"Making sure includes/connect.php is included." includes/connect.php

I'm assuming that no response means that they were already checked in.

Here, I'm starting over again, this time specifying HEAD:

kevinz@www:~/public_html$ rm -Rf cigrants2/
kevinz_at_www:~/public_html$ svn checkout -r HEAD file:///home/kevinz/svn-repos/cigrants/trunk/ cigrants2
A cigrants2/help
A cigrants2/help/addregion.php
A cigrants2/help/addcountry.php
A cigrants2/help/addactivity.php
A cigrants2/addgrant.php
A cigrants2/utilities
A cigrants2/utilities/regions.txt
A cigrants2/utilities/countries.txt
Checked out revision 3.
kevinz@www:~/public_html$

Adding HEAD doesn't seem to help.

kevinz@www:~/public_html$ cd cigrants2
kevinz@www:~/public_html/cigrants2$ svn status
kevinz@www:~/public_html/cigrants2$

And here, I don't understand why the status command doesn't show me any differences from my checked out version (revision 3) to the repository (revision 4).

I'm sure that my confusion is due to my inexperience, and not to any flaws with Subversion. If anyone can comment, or refer me to the reference manual, I'd really appreciate it. I also appreciate any comments or suggestions on my overall usage of Subversion. Thanks for your help.

-Kevin

-----
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 Thu Jan 6 16:00:16 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.