Where does SVN update from?

Viewed 35

We have this work flow at my new job:

trunk code on server   --is copied to->    personal branch on server
                                                    |
                                              is checked out to
                                                    |
                                                    V
                                           local PC for development 

And after a while other people make changes to the trunk code. So if I go to my local PC copy and type:

svn update

Does it update from the trunk, or from the branch copy on the server?

1 Answers

If the working copy was checked out from a branch and you did not switch it to another branch or trunk, then running svn update fetches changes made to that branch. You can check the repository URL associated with your working copy by running svn info in your working copy.

When you want to sync your branch with a trunk, you should sync changes made to trunk with your branch. Sync merges are automatic with modern Subversion clients.

Here svn info shows the URL associated with your working copy, repository-relative URL, and the root URL of the repository. enter image description here

Related