Check diff against file on the server

后端 未结 2 1223
情歌与酒
情歌与酒 2021-01-30 03:14

I have a working copy of a repository on my machine, and I know that it has been updated on the server. I would like to know how to get the difference between the new version an

2条回答
  •  你的背包
    2021-01-30 03:46

    The working copy is revision BASE. The latest copy from the repository is revision HEAD. This will compare your working copy against the HEAD revision:

    svn diff -r HEAD 
    

    Actually that'll spit the changes out in reverse, i.e. it tells you how to go from HEAD to BASE. So technically you want:

    svn diff -r BASE:HEAD 
    

    Can you spare the keyboard strokes? Only you and your deity know that answer.

提交回复
热议问题