Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between SVN update to head vs synchronize with repository?

Tags:

eclipse

svn

When I right click on my project in eclipse I see two options synchronize with repository and update to head. I am not getting what is the difference among them?

like image 385
M Sach Avatar asked Jan 17 '12 11:01

M Sach


People also ask

What is difference between commit and update in svn?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.

What is head version in svn?

In Subversion, the repository has a sequentially numbered revision that marks each state. HEAD is an alias for the latest revision of the repository. When a revision is not specified, HEAD is assumed.

What does svn update do?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up-to-date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision option.


1 Answers

The difference is following:

Update to HEAD will do svn update.

In other words it will update your working copy to the last revision from the repository.

Synchronize with Repository is something similar to svn status -u, but even more.

It will open a Synchronize tab (or perspective) that displays overview of your local (outgoing) modifications versus repository (incoming) modifications.

In this tab or perspective, you can review and synchronize (commit / update) individual files, see differences between your working copy files and incoming files from repository, browse commits history, resolve conflicts.

In general, I highly recommend you to check out the SVN Handbook. At least first two chapters.

like image 76
Paker Avatar answered Oct 11 '22 22:10

Paker