SVN Diff against changes in the remote repository.

A useful svn wrapper scripts. Get a diff of your local repostitory against the upstream repository changes. I wonder why it is not builtins though like a svn status -u but for dif.


for line in `svn status -u`;do
    [[ $line != "   "* ]] && continue
    rev=`echo $line|awk '{print $2}'`
    ff=`echo $line|awk '{print $3}'`
    svn diff -r${rev}:HEAD $ff
Share on FacebookTweet about this on TwitterShare on Google+Print this pageEmail this to someone
  • Pingback:   svndiff by bigredswitch()

  • Sam

    Hi Chmouel

    Not sure if there is some crucial difference, but

    svn diff -r HEAD

    seems to work for me.


    • It’s actually work pretty well thanks for that….