Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion option to display results of update without actually updating

Tags:

svn

sync

perforce

The perforce command:

p4 sync -n

will display the results of the sync (update in subversion) without actually performing the sync.

I've been looking in the svn help pages and googling around for a tag/command in subversion that will do the same but have yet to find one. I was thinking there may be a tag for svn update that would accomplish this. Is there one?

like image 544
user396161 Avatar asked Jul 19 '10 19:07

user396161


People also ask

Which command is used to retrieve all the changes from the svn repository but without applying them to your local branch?

The svn shelve command stores your changes without submitting them.

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.

Will svn update overwrite my changes?

When you update, the contents of your working copy are updated with all of the changes that have been committed to the repository since you last updated. Subversion is pretty smart about updating and never just overwrites files that have local changes with copies from the repository.


1 Answers

To see what an update will change, enter:

svn status -u 

This is like svn status but also displays files which would be updated.

You can then see individual differences by running svn status/svn diff on individual files.

like image 105
timdev Avatar answered Nov 15 '22 22:11

timdev