Question


I install SVN server on Ubuntu, my repository location is "var/lib/svn/myproject"
http://www.howtoforge.com/installing-subversion-and-configuring-access-through-different-protocols-on-ubuntu-11.10
then: I create a file "index.php" in myproject

on another PC (win7) (where I can access my Ubuntu via SSH and http), I install TortoiseSVN
I create new folder called WC, I write-click on WC then choose SVN checkout, I put my repository path (http://xxx.xxx.xxx.xxx/svn/myproject/) and it done successfully

MY QUESTION: should 'checkout' download myproject folder contents? (index.php file)? it does not download any file from myproject folder!
ANOTHER QUESTION: when I create some new file x.x in WC and commit it, it done successfully, but should I find this file in /var/lib/svn/myproject?? I don't find it
have you any idea
many thanks!

Was it helpful?

Solution

First, I'd recommend using a Subversion host so you don't have to worry as much about the server-side configuration issues and maintenance. My company, ProjectLocker, is one of many companies that do this.

To answer your question, think about this in terms of a server and a client. The server is your master repository, containing all your history and details, and is not to be seen directly be a developer. This is what TortoiseSVN talks to. The client is TortoiseSVN, and it will keep a copy of files on your local machine representing the current state of what you're working on.

If you're working in Tortoise, that means your development machine is Windows. Any updates that you wish to go into Subversion should be done on the Windows machine. You should not have to log into Ubuntu to do anything regarding commits, checkouts, or updates; only adding and deleting users and setting permissions or special hooks.

To answer your questions more directly:

  1. Putting files in your Subversion directory in Ubuntu will at best have no effect and at worst damage the repository. Subversion keeps the files in a special format, and you'll need to use a client to change them. So based on what you did, no, no files should have come down when you did the checkout.

  2. When you put the index.php in a directory on your Windows machine visible to TortoiseSVN, then add and commit it, the file will be available in Subversion, but it will be stored as a revision in the special format I mentioned earlier. The only ways to get it out would be through a Subversion checkout or a Subversion export.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top