Reputation: 11
I am new to Subversion, just recently installed it on our server. I imported a existing web project we have been working on. I am able to check out files edit them update them and commit them. Everything seems OK in subversion. If I login to my repository in a browser it will show me my changes in the code.
But it does not change the original web project folder that imported. It should show it right? Am I missing a step?
Upvotes: 1
Views: 6359
Reputation: 566
You will need to run an svn checkout
or svn update
to the web project folder if you want that folder to be up-to-date, it won't be kept up-to-date automatically unless you setup a post-commit hook of some sort or run a cron that regularly updates that folder from svn.
Upvotes: 0
Reputation: 82
svn update
to pull down changes from the repository.Upvotes: 1
Reputation: 851
From a web development perspective, you would need 2 working copies :
Then, you make changes on your development environment (working copy 1), commit them to subversion, then update the working copy that is on your server (working copy 2).
Upvotes: 1
Reputation: 70263
Local files are only updated when
svn update
in the directory.No, the source directory you imported from is not automagically updated, because it is neither of the above. You fed its contents to the SVN repository. Then you checked out the sources to a different directory (I assume). This is a SVN work directory (try svn info
- if you get info, it's a work directory, if you get an error it is not).
Other people can also check out a work directory from the repository, do their edits, make their commits, get other people's commits by calling svn update
. But your commits do not automatically change the contents of other directories.
Upvotes: 1