How to see what will be updated from repository before issuing “svn update” command?

后端 未结 7 1557
鱼传尺愫
鱼传尺愫 2020-12-22 17:17

I\'ve committed changes in numerous files to a SVN repository from Eclipse.

I then go to website directory on the linux box where I want to update these changes from

相关标签:
7条回答
  • 2020-12-22 17:44

    This is what I was looking for. Checked Google first, but svn help ended up coming through for me :)

    svn diff -r BASE:HEAD .
    
    0 讨论(0)
  • 2020-12-22 17:48

    Try:

    svn status --show-updates
    

    or (the same but shorter):

    svn status -u
    
    0 讨论(0)
  • 2020-12-22 17:49

    The same but shorter shorter :) :

    svn st -u
    
    0 讨论(0)
  • Depending on what you want to know between your working copy and the latest svn server repository, without updating your local working copy, here is what you can do:

    if you want to know what has been changed in svn server repository, run command:

    $ svn st -u
    

    if you want to know if the same file has been modified both in your local working copy and in svn server repository, run command:

    $ svn st -u | grep -E '^M {7}\*'
    

    if you want to get list of files changed between a particular revision and HEAD, run command:

    $ svn diff -r revisionNumber:HEAD --summarize
    

    if you want to get a list of files changed between paticular revisions, run command:

    $ svn diff -r revisionNumber:anotherRevisionNumber --summarize
    

    if you want to see what will be updated (without actually updating), run command:

    $ svn merge --dry-run -r BASE:HEAD .
    

    if you want to know what content of a particular file has been changed in svn server repository compared with your working copy, run command:

    $ svn diff -r BASE:HEAD ./pathToYour/file
    

    if you want to know what contents of all the files have been changed in svn server repository compared with your working copy, run command:

    $ svn diff -r BASE:HEAD .
    
    0 讨论(0)
  • 2020-12-22 17:55

    You can use 'svn diff' to see the difference between your working copy and the repository.

    0 讨论(0)
  • 2020-12-22 17:57

    You can see what will updated (without actually updating) by issuing:

    svn merge --dry-run -r BASE:HEAD .
    

    More details here.

    0 讨论(0)
提交回复
热议问题