svn update is not updating!

前端 未结 9 982
悲哀的现实
悲哀的现实 2021-02-03 21:33

I want svn update to overwrite my local file with the files from the server, even if my local files have modifications, I want to throw them away and use the version that\'s on

相关标签:
9条回答
  • 2021-02-03 21:56

    You should use SVN revert. This would revert the files in your working copy to their original state. For more information and examples check the svn book here: http://svnbook.red-bean.com/en/1.1/re25.html

    0 讨论(0)
  • 2021-02-03 21:56

    I just wanted to add a little to what diyism posted.

    I didn't see the . next to the ; in the line

    svn revert -R .; svn up
    

    and it confused me. I don't know why you need to explicitly use . for all files when using revert and you don't using update but that seems to be the way it is.

    So, in case it helps anyone, I thought it would be more clear to see the answer as two lines

    svn revert -R .
    svn update
    
    0 讨论(0)
  • 2021-02-03 21:58

    Worst case, delete the contents of your working copy (excluding the .svn folder) and do an update.

    0 讨论(0)
  • 2021-02-03 22:00

    Use this line:

    svn revert -R .;svn up
    
    0 讨论(0)
  • 2021-02-03 22:04

    I have this problem occasionally on OSX (10.6, currently using svn 1.6.16). A workaround is to do this:

     svn update `svn ls -R`
    

    It can be slow though.

    Ref: http://code.google.com/p/support/issues/detail?id=3192

    0 讨论(0)
  • 2021-02-03 22:11

    use svn revert

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